Repository-based Configuration Management > How to... > Deleting a branch of a model (repository-based CM)
  
Deleting a branch of a model (repository-based CM)
You delete a branch by deleting all model versions in that branch. Note that if you have rebased a branch, that branch will include more than one model version.
To delete a model version, you require owner access permissions to that model version and all Packages in that model version.
You can delete a branch of a model through Model Explorer or Modeler.
To delete a branch of a model (through Model Explorer)
1. If you want a record of the branch you are deleting, export the model version in the branch. How?
2. Start Model Explorer. How?
3. If the Show Versions toolbar button is not selected, click the Show Versions button.
4. Expand the database in which the branch you want to delete resides.
5. Locate the tip version of the branch, and notice the three parts of its version number, for example, 2.0.0:
If the last part of the version number is 0, there is only one model version in the branch.
If the last part of the version number is not 0, there are multiple model versions in the branch and each model version will need to be deleted. The first two parts of the version number will be the same for each model version in the branch.
6. In turn, right-click each version of the branch, and then click Delete, and from the confirmation dialog, click Yes.
To delete a branch of a model (through Modeler)
1. In Modeler, open the branch you want to delete.
2. On the File menu, point to Model, point to Delete, and then click Delete Model Version.
3. From the confirmation dialog, click Yes.
4. If the branch includes multiple model versions: delete each version of the branch in turn.