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

Delete a project with empty repos

We recently upgraded our servers. We moved our the database and restored users. However we lost our repos in the transition. The repos still appear in bitbucket but I cannot delete because they are empty. When I click on them I get a 404 error. I cannot delete the old projects without deleting the repos first but are empty and go to a 404 page. How can I remove the projects?

1 answer

0 votes

Hi BeaconEducator,


Could you please let us know:

- if you have moved the $BITBUCKET_HOME/shared  as well or did you leave it in the same place? This is the directory that stores the actual repository data. 

- If you have moved the $BITBUCKET_HOME/shared did you update your new Bitbucket Server version to use the new directory? You need to update your $BITBUCKET_INSTALL/bin/ (or set-bitbucket-home.bat)  with the new path if that was the case.

Please also make sure the user running your Bitbucket Server process has the ownership of the whole $BITBUCKET_HOME  directory.





This issue was the shared folder was not moved and so the repo had nothing to link to causing the 404 error.

We could never find a response on how to get around the 404 pages displaying and removing the old project.

I opened SQL Server Management and removed the old instances of the projects and repos from the database, which in turn removed the projects/repositories from Bitbucket.

Suggest an answer

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

How do you use the Bitbucket-Jira integration? How does it help your team?

Hey everyone, over the past year, we've added several new features on how you can use Bitbucket and Jira together. We'd love to know how you'll are using the integration and how it's helping your t...

104 views 0 2
Join discussion

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