Question & Answer
Question
What is the command syntax that can be used for removing labels recursively when using IBM® Rational® ClearCase® on Microsoft® Windows®, UNIX® or Linux®?
Answer
To remove a label type and all instances applied to elements, use the cleartool rmtype command:
cleartool rmtype -rmall -force lbtype:LABEL_NAME@<VOB-tag>
Review the IBM Rational ClearCase Command Reference manual on the topic of rmtype (cleartool man rmtype) for more information.
To keep the label type but remove all instances, use the cleartool find command and execute the cleartool rmlabel command.
- Example on UNIX or Linux:
- Example on Windows:
cleartool find . -version "lbtype(REL101)" -exec 'cleartool rmlabel REL101 $CLEARCASE_XPN'
Note: The command may be changed to the following to generalize it for objects with white space in the name:
cleartool find . -version "lbtype(REL101)" -exec 'cleartool rmlabel REL101 "$CLEARCASE_XPN"'
cleartool find . -version "lbtype(REL101)" -exec "cleartool rmlabel REL101 %CLEARCASE_XPN%"
Review the IBM Rational ClearCase Command Reference manual on the topic of find (cleartool man find) as well as on the topic of rmlabel (cleartool man rmlabel) for more information.
Related Information
Was this topic helpful?
Document Information
Modified date:
16 June 2018
UID
swg21126736