How to Delete a Branch in Gitlab
·2 min read
In this article
Here's how to delete a branch in Gitlab
- Log in to your GitLab account and access your dashboard.
- Navigate to and open the project that contains the branch you wish to remove.
- Locate the navigation panel on the right side of the screen.
- Find and click on the 'Branches' option in the right sidebar menu.
- Find the specific branch you want to delete from the branches list.
- Click on the 'More actions' button next to your target branch.
- Select 'Delete branch' from the dropdown menu that appears.
- Confirm the deletion by clicking the 'Yes, delete branch' button.
Ready to get started with
interactive demos?
Frequently Asked Questions
Once a branch is deleted in GitLab, it cannot be easily recovered through the web interface. However, if you have a local copy of the branch, you can push it back to the remote repository. It's always recommended to ensure the branch is no longer needed before deletion.

