How to Delete a Branch in Bitbucket
·2 min read
In this article
Here's how to delete a branch in Bitbucket
- Navigate to your Bitbucket dashboard and locate the repository containing the branch you want to remove.
- Open the repository by clicking on its name to access the repository overview page.
- Click on 'Branches' in the left navigation menu to view all available branches.
- Scroll through the branch list to locate the specific branch you wish to delete.
- Click the 'Actions' button (three dots) located next to your target branch.
- Select 'Delete' from the dropdown menu that appears.
- Confirm the deletion by clicking 'Delete' again in the confirmation dialog.
Ready to get started with
interactive demos?
Frequently Asked Questions
Once you delete a branch in Bitbucket, it cannot be recovered through the web interface. However, if the branch existed in local repositories or if you have the commit hash, you may be able to recreate it. It's recommended to double-check before deleting any important branches.
