![]() |
Telelogic SYNERGY (steve huntington) | ![]() |
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 |
![]() |
![]()
|
![]() |
|
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> |
|
![]() |
|
![]() |
|
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. |
|
![]() |
|
![]() |
|
Excellent - it works just as described. Thanks for the quick and accurate response. I do appreciate it.
kgk |
|
![]() |
|
![]() |
|
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 |
|
![]() |
Telelogic SYNERGY
» SYNERGY/CM
»
Deleting Orphans from Command Line
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.