Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to delete clearcase views created by other users?

My friend who recently left our organisation also left his ClearCase view undeleted.
Now we wanted to delete it.

I was trying to delete but it did not allow. It said:

Unable to remove "\\hostname\viewsharefolder\Viewname.vws" 
Operation not permitted

Can administrator only delete his views?

If I deleted the (.vws) folder associated with view, for ex: "Components_int.vws", will it be enough?

like image 254
Samselvaprabu Avatar asked Mar 20 '12 06:03

Samselvaprabu


People also ask

How do I delete a ClearCase view?

To permanently remove a view (including its entries in the Rational® ClearCase® registry and all references to the view held by any VOBs), use the Rational ClearCaseAdministration Console: Navigate to the view storage node for the view.

How do you delete private files in ClearCase?

In order to also get rid of private directories, first run the command with rmdir /S /Q "%i" and then with del /F "%i" .

How do I delete a view in Linux?

The rm command with the -d flag can be used to remove an empty directory. Supported options for file deletion can also be combined with deleting the directory with the -d flag.


1 Answers

Yes you can (for any view, snapshot or dynamic, UCM or base ClearCase).

You also can remove it without ever accessing it. (So removing the view storage isn't enough, or even necessary)

If you still have access to the view storage:

cleartool rmview theViewToRemove

If there is any access/right issue when trying to remove said view:

cleartool lsview -l theViewToRemove # get its uuid
cleartool rmtag -view theViewToRemove
cleartool unregister -view -uuid uuid_of_viewToRemove

That second solution is very handy in that you don't need access to the view storage.
You simply remove reference to that view in the central registry of ClearCase (specifically the view_object and view_tag files of your ClearCase registry server)


Tamir Gefen mentions in the comment the IBM script rmview.pl, which is also mention in the SO question "Delete ClearCase Views Script".

A simpler script is in my answer of that same question: "muke_view.pl"

like image 107
VonC Avatar answered Sep 23 '22 04:09

VonC