Removing a global type

Removing a global type or any of its copies removes all local copies and the global type itself.

About this task

The rmtype command lists all VOBs that have local copies of the global type, then prompts for confirmation of the removal. You must use the –rmall option when removing a global type with the rmtype command.

Example

For example:

cleartool rmtype –nc lbtype:LABEL1@\dev
cleartool: Error: There are labels of type "LABEL1".
cleartool: Error: Unable to remove label type "LABEL1".

cleartool rmtype –nc –rmall lbtype:LABEL1@\dev
There are 1 instance(s) of label type "LABEL1" in \re.
There are 1 instance(s) of label type "LABEL1" in \dev.
Remove all instances of label type "LABEL1"?  [no] yes
Removed label type "LABEL1".

Note: If you enter a rmtype command in a VOB that does not contain a local copy of the global type, rmtype tries to find a matching global type in the administrative VOB hierarchy. All local copies are deleted first; then the global type is removed. If any of the local copies cannot be removed, the command fails and the global type is not removed. You must correct the problem that prevented the local copy from being removed and enter the rmtype command again.

For more information about removing types, see the rmtype reference page.