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.
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.