22.2 Permanent Removal of a View

To permanently remove a view, use the ClearCase Administration Console:

  1. Navigate to the view storage node for the view. This is a subnode of the host node for the host where the view storage directory resides.

  2. Click Action > All Tasks > Remove View.

You can also use the rmview command to remove a view permanently. These commands remove all relevant entries from the ClearCase storage registry. The procedure for removing a view also removes references to the view from VOBs.

If you have tried to remove a view by removing its storage directory, you may need to remove references to the view (checkouts and derived objects) from some VOBs. Use the following procedure:

  1. Use the following command, and note the view's UUID from the list of views referenced by a VOB:

  2. cleartool describe -long vob:vob_tag

    If the view-tag still exists, you can use the lsview -long command to find the view UUID.

  3. If the view-tag still exists, remove the tag from the registry. In the ClearCase Administration Console, you can use the View Tags node for the tag's regions to remove view-tags. You can also use the following commands:

  4. cleartool endview -server view_tag
    cleartool rmtag -view view_tag

  5. Unregister the view. In the ClearCase Administration Console, you can use the View Object node to remove a view object. You can also execute the following command, using the view's UUID from Step #1:

  6. cleartool unregister -view -uuid uuid

  7. For each VOB that holds references to the view, remove the view-related records from the VOB. In the ClearCase Administration Console, you can use the Referenced Views subnode of a VOB storage node to remove a view's records from a VOB. You can also execute the following command, using the view's UUID from Step #1:

  8. cleartool rmview -all -uuid uuid

After you have removed references to the view from all VOBs, remove the view storage directory if any of it remains.