IBM Support

Removing labels recursively

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:
  • 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"'

  • Example on Windows:
  • 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.

[{"Product":{"code":"SSSH27","label":"Rational ClearCase"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Cleartool","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF015","label":"IRIX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"7.0.1;7.0;2003.06.16;2003.06.00","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}},{"Product":{"code":"SSSH27","label":"Rational ClearCase"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Cleartool ","Platform":[{"code":"","label":""}],"Version":"","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
16 June 2018

UID

swg21126736