Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How do I delete an inaccessible repository?

So, I'm the bitbucket admin for my org, and I botched an import for a repo from a team member's personal workspace to the org project. I was able to import the repo once he gave me admin access to the version in his workspace, but the earlier attempt now appears in the repo list, and says it's not available when I click on it. Thus, I am not able to delete it in the normal way, or through curl. Here's the request I am sending: 

 

curl --location --request DELETE 'https://api.bitbucket.org/2.0/repositories/{workspace}/{bad_repo_slug}' \-
--header 'Authorization: Basic {key}'

 I am getting a 403 error in response to this, indicating that it just can't hit the endpoint, and auth isn't the issue (no 2fa enabled anyway). 

Is this a problem I can solve, or does this need to be handles on the atlassian side? I want to be able to rename the good repo to the name used by the bad one, but I can't do that as long as bitbucket thinks the name is taken.

2 answers

2 accepted

0 votes
Answer accepted

There's something inconsistent on the Atlassian side for sure. 

If  you contact support, the should be able to free up that 'claim' on the project/repo name.

Sent a support ticket, let's see if that helps!

Accepted the answer, coz "Contact Support" was the right call. Thanks!

0 votes
Answer accepted

Hello,

I could see in our system that the repo in question was stuck in 'Importing' mode with 0 data, so I went ahead and deleted it for you. When the import task fails and the repo is stuck in 'Importing' mode, then it can only be deleted from a member of Bitbucket Cloud support team.

If this ever occurs again, you can open a support ticket like you did via https://support.atlassian.com/contact/#/. It is also ok if you post your request here, if you feel comfortable sharing the repo URL publicly.

Please feel free to let me know if you have any questions!

Kind regards,
Theodora

Thanks! I appreciate it. 

Like Theodora Boudale likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
Community showcase
Published in Bitbucket

Powering DevOps with Bitbucket Server & Data Center

Hi everyone, The Cloud team recently announced 12 new DevOps features that help developers ship better code, faster   ! While we’re all excited about the new improvements to Bitbucket ...

1,886 views 0 7
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