Bitbucket Server - Deleting Repository did not Decrease Disk Usage?

Patrick Chen May 24, 2021

Hello,

We are trying to reclaim disk space on our Bitbucket Server instance.

We found some repositories that were no longer needed and deleted them, however the disk space usage has not gone down at all.

Is this a bug or expected behavior? What can we do to manage disk space usage?

Any guidance is appreciated, Thank you.

1 answer

1 accepted

0 votes
Answer accepted
Christian Glockner
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 25, 2021

Hi Patrick,

If a repository is forked to another repository and that fork still exists, the original repository will remain on disk even if it is deleted. Is that the case here?

Cheers,

Christian
Premier Support Engineer

Atlassian

Patrick Chen May 26, 2021

Yes, I believe that is the case here. 

I had some users delete repo's forked into their Personal Projects but saw no change in the overall disk space usage.

Will the disk space usage go down only when both the original and forks are deleted?

Christian Glockner
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 26, 2021

Hi Patrick,

Yes, once the last fork is deleted the original repo will be removed from disk.

Cheers,

Christian

Premier Support Engineer

Atlassian

Patrick Chen July 13, 2021

Hi, even though I deleted a repo with no forks, the repo still appears to be on the disk. (ie. 'E:\Bitbucket_Data\shared\data\repositories\1278')

Could there be an issue with Bitbucket Server's garbage collection? 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events