top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration

Facebook Login
Site Registration

ClearCase: How to Delete Branches and Branch Types?

0 votes
ClearCase: How to Delete Branches and Branch Types?
posted Aug 14, 2014 by Kali Mishra

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

Deleting a Branch
cleartool rmbranch –nc –force ELEMENT_PATH@@FULL_BRANCH_PATH

Example : If you want to delete the /mybranch/ branch and the branch was branched from the /main/ branch on the file "/vob/myvob/a.txt", then here is the command.

$ cleartool rmbranch –nc –force /vob/myvob/a.txt@@/main/mybranch

Deleting a BranchType
cleartool rmtype –rmall –force brtype:BRANCH_TYPE_NAME

This will delete the branch type only from the current branch so you need to run this from each vob.

answer Aug 15, 2014 by Salil Agrawal
Similar Questions
+3 votes

Say I've a user that copied a checked in version folder tree using ClearCase Explorer to create a view-private folder tree. Now he wants to delete it and is not allowed to delete it.

All the files and folders in the copy are owned by Nobody (S-1-1-0) and have the read-only bit set. The files could be deleted by manually going into the properties of each file and removing the read-only bit. Then the files could be deleted.

The folders are another matter. They, so far, cannot be deleted. Both as the user and as the VOB owner we've gone into the folder properties and removed the check in the read-only box and closed the properties. Reopening the properties has the read-9only check restored.

I've gone to the command prompt and used the attrib command as "attrib -r /d folder" or "attrib -r /d /s folder" or "attrib -r -a -s -h -I /d /s folder". In all cases I get "Access Denied - folder.

I've told the user that removing the view will get rid of the folders. He insists that is not possible due to other content in the view. I've suggested that they get the "other" work done and then delete the view.

So while I convince the user to just remove the view, does anyone know how to successfully delete the folder?

Contact Us
+91 9880187415
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Karnataka INDIA.