It seems like it used to be possible but Atlassian support no longer has any options to do this. I deleted it less than 7 days ago.
Welcome to the community!
Your best bet right now is to check every local machine that had a clone of the repo.
Run git remote -v to confirm it points to Bitbucket, and as long as the local clone exists, you still have the full history. You can re-create the Bitbucket repo and push it back up with git push --all and git push --tags.
Also worth checking: any CI/CD systems (Pipelines, Jenkins, GitHub Actions, etc.) that pulled the repo — they often cache a shallow clone. If you find one, deepen it with git fetch --unshallow before pushing back up.
I can confirm that it has never been possible to restore a repository from the UI, unfortunately - this has always required support intervention.
I've found the repository you're referring to and have restored it from the backend, it will have a different name than before (it includes the date it was deleted), but you can change the name back in Repository Settings.
Cheers!
- Ben (Bitbucket Cloud Support)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.