The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Can't delete a bitbucket-merge-queue branch left over from testing

amcroce
Contributor
June 10, 2026

While testing Merge Queues in one of my repos, Bitbucket created an internal branch named bitbucket-merge-queue-204. I'm no longer using merge queues there, but the branch is still around and I can't get rid of it.

When I try to delete it from the UI I get:

error.png

No further detail in the error.

I've tried:
- Deleting it from the Branches view in the UI.
- Deleted the queue from settings

This is Bitbucket Cloud. Thanks.

2 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Answer accepted
amcroce
Contributor
June 12, 2026

I contacted Support and they deleted the branch.

0 votes
Arkadiusz Wroblewski
Community Champion
June 10, 2026

Hello, @amcroce 

First, try forcing the deletion via the Git CLI:

git fetch --all --prune

git push origin --delete bitbucket-merge-queue-204

If that fails, verify that no branch restrictions or open pull requests are blocking it. You can also attempt a deletion via the Bitbucket REST API, passing just the branch name without the refs/heads/ prefix.

If both methods fail, it is likely a leftover cleanup glitch from the deleted queue. Contact Bitbucket Support with your repository URL and the Git error message so they can clear the protected ref.

Best,

Arkadiusz🤠

amcroce
Contributor
June 11, 2026

Thank you for your reply.

None of it worked, so I already contacted Support.

Cheers 🙌

Like Arkadiusz Wroblewski likes this
Arkadiusz Wroblewski
Community Champion
June 12, 2026

@amcroce 

Super support could help you.😊

Have a great weekend 😀 😌 

Best,

Arkadiusz 🤠 ☀️ 

Rajkumar Singh
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 2, 2026

@amcroce Thanks for reaching out! The issue has been resolved, and branch deletion should be handled correctly going forward. Let us know if you run into any further trouble — happy to help!

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin Site Admin
TAGS
AUG Leaders

Atlassian Community Events