Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Facing issue while deleting the Bitbucket Cloud Repository


I am trying to delete a Bitbucket Cloud repository. I navigate through Repository settings -> Repository details -> Manage repository -> Delete repository -> Delete.

When I click on delete I get the below pop-up:



It's the same for last 1 day. When I checked with the Bitbucket Status Page, everything is operational.


Additional Info:

I am facing this issue in the repositories for which I had tried to rename the repository using REST API. For other repositories which I don't rename, I am able to delete it. I believe it's a bug from Bitbucket.

1 answer

1 accepted

1 vote
Answer accepted
Caroline R Atlassian Team Nov 12, 2021

Hi, @Akshay b

Thank you for reaching out to Atlassian Community!

The “Something went wrong" message usually comes with a 5xx response that shows a Sentry ID code. This code may give us some indication of what is causing this issue. In this case, could you please follow the next steps to find the Sentry ID, so I can further investigate this case?

  • Open the "Developer tools" in the browser you are using (click on the three dots > More tools > Developer Tools): 


  • Then navigate to the Bitbucket page that gives you this error (try to delete the repo) 

  • In "Developer tools", select the Network tab

  • Find and select the request that gives a 5xx response

  • In the Headers panel (after you select the request with 5xx response), check if there is a field named sentry id.

If you can provide us with the value of that field, we can look it up in our system for further info.

Thank you.

Kind regards,

Hi @Caroline R ,

Thanks for your response. Here is the sentry id: 1705cca4be6a42b09252b4b0cf461d09


Hope this helps! Thanks!!

Caroline R Atlassian Team Nov 12, 2021

Hi, @Akshay b

Thanks for sharing the sentry code with us. I checked that and it corresponds to the below error:

ProjectPrivacyException: A repository in a private project cannot be publicly visible.

So the repository you are trying to delete is set as public, but the project that has this repository is private. This is the cause of this issue. 

In this case, you can set this repository as private by following the next steps and then try to delete the repo:

  • Access the repository > Repository settings

  • Under the Repository details section, find the "This is a private repository" option and check this box; 

  • Click Save changes

Also, if you want to create a repository using the API and make it private, you can use the following request:

curl -X POST -u username:AppPassword -H "Content-Type: application/json" -d '{"scm": "git", "is_private":"true", "project": { "key": "{inform_the_project_key_here}" } }'{workspacename}/{repository_name}

In case the "This is a private repository" option is disabled (grayed out), you can use the API to update the repo via a PUT:

curl -X PUT -u username:AppPassword -H "Content-Type: application/json" -d '{"is_private": true}'{workspace_name}/{repository_name}

I hope this helps, but please let me know how it goes and if you have any questions. 

Kind regards,

Thanks @Caroline R

"This is a private repository" option was disabled. So, I used the API to make the repository private and then was able to delete the repository successfully.

Caroline R Atlassian Team Nov 15, 2021

Hi, @Akshay b

Thanks for getting back to us and confirming the API worked. I'm glad to know you were able to delete your repo! 

Kind regards,

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket

Git push size limits are coming to Bitbucket Cloud starting April 4th, 2022

Beginning on April 4th, we will be implementing push limits. This means that your push cannot be completed if it is over 3.5 GB. If you do attempt to complete a push that is over 3.5 GB, it will fail...

2,229 views 2 9
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you