Delete a Git branch from the web portal
Azure DevOps Services | Azure DevOps Server 2022 - Azure DevOps Server 2019
Important
This article covers deleting a Git branch via the web in Azure DevOps. To delete a Git branch in your own repo from Visual Studio or the command line, follow these steps in the Azure Repos Git tutorial.
Prerequisites
Category | Requirements |
---|---|
Project access | Member of a project. |
Permissions | - View code in private projects: At least Basic access. - Clone or contribute to code in private projects: Member of the Contributors security group or corresponding permissions in the project. - Set branch or repository permissions: Manage permissions permissions for the branch or repository. - Change default branch: Edit policies permissions for the repository. - Import a repository: Member of the Project Administrators security group or Git project-level Create repository permission set to Allow. For more information, see Set Git repository permissions. |
Services | Repos enabled. |
Tools | Optional. Use az repos commands: Azure DevOps CLI. |
Note
In public projects, users with Stakeholder access have full access to Azure Repos, including viewing, cloning, and contributing to code.
Category | Requirements |
---|---|
Project access | Member of a project. |
Permissions | - View code: At least Basic access. - Clone or contribute to code: Member of the Contributors security group or corresponding permissions in the project. |
Services | Repos enabled. |
Delete Git branch
Open your repo on the web and select the Branches view.
Locate your branch on the branches page. If you don't see it, select All to view all branches and filter the branches using the Search all branches box.
Select the trashcan icon next to the branch you want to delete.