Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic SYNERGY (steve huntington)
Decrease font size
Increase font size
Topic Title: Deleting Orphans from Command Line
Topic Summary: Deleting Orphans from Command Line
Created On: 17-Nov-2005 22:43
Status: Read Only
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
 17-Nov-2005 22:43
User is offline View Users Profile Print this message


Kerry Kidwell

Posts: 5
Joined: 17-Nov-2005

Due to many projects being deleted improperly we're seeing many orphaned files while doing a query that belongs to deleted projects.  From the GUI we can simply do a Show History - right click on the file - select Delete - and the file is gone.  I'm attempting to do the same from the command-line, but am not having success (ccm delete <filename>.  When I requery, the file remains.

Can you tell me what I'm missing???

Thanks,
kgk

Report this to a Moderator Report this to a Moderator
 18-Nov-2005 12:17
User is offline View Users Profile Print this message


Adrian Faiers

Posts: 4
Joined: 6-Jul-2004

What you need to do is a query, then delete from the query results.

for example
1 - Set your role to administrator to guarantee what is going to happen!
ccm set role ccm_admin

2 - Query for the item you want to delete
ccm query "name='gyujnpqw.h' and owner='cbloggs'"

3 - This query will show all versions of the object that satisfy the criteria.
1) 1st Answer
2) 2nd Answer
3) 3rd Answer

n) nth Answer

4 - Delete the version you want to remove
ccm delete @2
The @2 at the end refers to the 2nd item returned from the Query, be careful, just putting "@" will delete all versions returned from the query.

For extra security, you could have a history window open at the same time and do a "Find Use" on the version before deleting.

Report this to a Moderator Report this to a Moderator
 18-Nov-2005 15:54
User is offline View Users Profile Print this message


Kerry Kidwell

Posts: 5
Joined: 17-Nov-2005

Excellent - it works just as described.  Thanks for the quick and accurate response.  I do appreciate it.

kgk
Report this to a Moderator Report this to a Moderator
 12-Dec-2005 08:46
User is offline View Users Profile Print this message


Jens Johansson

Posts: 1
Joined: 27-Oct-2005

If you know you just want to delete orphans you can add it to the query. I do a cleanup operation once every week using ccm query "type != 'project' and create_time
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic SYNERGY forum.
There are currently 0 users logged in.
The most users ever online was 15 on 15-Jan-2009 at 15:34.
There are currently 0 guests browsing this forum, which makes a total of 0 users using this forum.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.