How to delete a snapshot using scm command line - version 4.0.3
Hi,
First of all, current RTC server version (and then cli) is 4.0.3. On some build workspaces, we now have several thousands of snapshots and we want to script something in order to remove old and useless snapshots. We detected than, even specifying --max to big value such as 10000, the server is returning 2048 items max starting from the first one we created -> this means we don't have access to last one, which is a big issue for us. Using scm command line help, I cannot see any way to delete a snapshot, is it a defect or is it a known limitation ? Do you have any hidden way to perform such cleanup ? Thanks in advance for your help Regards Gael |
2 answers
Snapshot deletion in the CLI was added in RTC 4.0.4. For your version, you can use the Eclipse client to delete snapshots.
Comments
Gael CROVA
commented Apr 10 '14, 10:20 a.m.
Ok so the reply to my question is "not possible".
The Eclipse client can multi-select snapshots to delete after searching for them. There isn't an option to retrieve the latest by create date but the search results can be sorted. Also, you're dealing with a lot of snapshots so there is a limit of 1024 results for the search. Paging hasn't been implemented for the Eclipse client so you won't be able to see it all at once. A date range is supported by the server but also has not been implemented in the Eclipse client.
Gael CROVA
commented Apr 10 '14, 11:26 a.m.
Hi,
|
To my knowledge, snapshots can not be deleted (by design).
Comments
Gael CROVA
commented Apr 10 '14, 7:21 a.m.
Hi,
Jeff Care
commented Apr 10 '14, 7:24 a.m.
I stand corrected; I thought that snapshots were immutable.
|
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.