delbranch - Delete Repository Branch

delbranch [-n] [-f] [-k] [-d] [-v displayoptions] branchname

delbranch deletes a customized branch of a product line from the repository.

Deleting a custom branch from the version repository is a potentially risky operation because any product lines attached to that branch will become orphaned. Once that has happened, updating those product lines is very difficult. Therefore, delbranch performs several internal changes to discover if there are any users of the branch it is requested to delete. In rare circumstances, you might want to override such a check - for example, if the branch was used only in an environment which itself has been destroyed. To enable this, a -d option causes delbranch to ignore the internal dependency checks on the branch usage. The -d option is only relevant when the -f (force deletion rather than the default operation of marking the branch hidden from creation and update operations) is also used.

Note: 

The repository server must be running when you use this utility.

Program Option Description
-n Take no action.
-f Remove the branch and all its associations rather than just hiding it.
-k Refresh the repository credentials
-d Disregard any dependencies on the branch.
-v

errorlevel, tracelevel, and verbose specified in any order, where:

  • errorlevel = {n}one | {f}atal | {e}rror | {w}arning (warning is the default)

  • tracelevel = 0:6 where 0 is no message and 6 is everything

  • verbose = whether to display exception stacktrace

branchname The name of the branch that you want to delete.