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?
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.
In order to also get rid of private directories, first run the command with rmdir /S /Q "%i" and then with del /F "%i" .
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.
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
"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With