Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Two questions about "Deleting file content from the repository"

This feature is available (if you are repository administrator) in the Eclipse interface.
I have 2 questions :
  - Does this feature remove completely and physically the file contents from the repository (impossible to hack)?
  - Is it available in command line (for scripted mass destructions)
Thanks !

0 votes


Accepted answer

Permanent link
Yes,  delete will remove the file contents permanently.  The content is not accessible after deletion.   There is also a command line option for delete as well.   If you run scm.exe -help it will list all of the commands available in a given release.
Ralph Schoon selected this answer as the correct answer

3 votes


6 other answers

Permanent link
Jean-Michel, have you looked at this video, and in particular around minute 8:31 :
 http://www.youtube.com/watch?v=vFMiEanEELo

I looks like Chris lays out the three commands you will need.  

2 votes


Permanent link
Look at this hot off the presses :

"Deleting Content From Source Control in Rational Team Concert"
https://jazz.net/library/article/1006

2 votes


Permanent link
Thanks a lot, Rolf, for answering so quickly.. and positively !
I already looked at the command line of the 4.0.
I guess that the command to delete file contents is the command "scm delete state-content" but the documentation is very short - this is a general remark about scm - .. it says that it "deletes states of an item" .. which "state" of which "item" do I have to refer to in my case ?
More completely, I want to delete all file versions in a component which contains critical technology - after it has been transfered to a new server in a protected zone. What is the sequence of commands I should use to get finally to the data I want to delete ? I see that it is possible to get the list of all the changes sets of a component. Should I start from that point ?

0 votes


Permanent link
Oh YES ! It looks very simple (and "states" are more clear to me now). Thanks for your efficiency.

0 votes

Comments

Yes Chris does a good job at providing clarity.


Permanent link
Thanks to your help, I could develop my script that deletes all file contents in a component.

In my first tests, I did not use the --force option so, on some change sets, I got the message below :
For a better understanding of the consequences of this option, I wonder what kind of dependence it is and by which user situation it is generated.

>  ./scm delete state-content -r https://jazz-server:9443/jazz -u jazzy -P jazzy 1168 1169
The state "1169" content is referenced by 12 items:
  /net.jazz.uws.squawk/license.html
  /net.jazz.uws.build.scripts/license.html
  /net.jazz.uws.squawk.ui/license.html
  /net.jazz.uws.squawk.doc/license.html
  /net.jazz.uws.squawk.ui.tests/license.html
  ...
Rerun with --force option to delete the content. Deleting this content will also remove this content from all files that reference it.
Problem running 'delete state-content':
Failed to delete content.

0 votes

Comments

Please raise a work item to help us track this.
Thanks

JohnC SCM Lead


Permanent link
I got some problems while running my script on a "real life" example.
"list changesets" apparently returns invalid change set UUIDs and the content deletion cannot be completed.
For more information (script used, error description ..) , you can follow the WI 219646 on jazz.net
https://jazz.net/jazz/web/projects/Rational%20Team%20Concert#action=com.ibm.team.workitem.viewWorkItem&id=219646

0 votes

Your answer

Register or log in to post 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 12,022

Question asked: Jul 25 '12, 9:37 a.m.

Question was seen: 6,016 times

Last updated: Aug 01 '12, 3:50 a.m.

Confirmation Cancel Confirm