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 !
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 !
Accepted answer
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.
6 other answers
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 ?
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 ?
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.
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.
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
"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