Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to reduce repo size in Bitbucket after cleaning up

Glecko August 22, 2025

So my issue is very similar to this one:

https://community.atlassian.com/forums/Bitbucket-questions/Unable-to-reduce-repo-size-in-Bitbucket-after-cleaning-up/qaq-p/2850765

I've reduced the size of several of my repos (see r****s, and r****s-t***s) using BFG (deleting large blobs and adding files to LFS). When I clone the repos, my local size is indeed significantly lower. 

But the web interface continues to report the original size, or even larger repo sizes.

Can somebody run the git gc on the server-side repo that seemed to fix it in that other linked issue?

2 answers

0 votes
Syahrul
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 24, 2025

Hey @Glecko 

Welcome to the community!

I have triggered GC on the affected repository in your workspace. Some of the repository's size has been reduced after the GC finished. Please review it and let me know how it goes.

Regards,
Syahrul

Glecko August 25, 2025

Hey @Syahrul 

Thanks for running that.

The  r****s, repository now indeed matches my local size when cloning the repository.

However, the r****s-t***s repository still has size 1.1GB on the Bitbucket interface, while my local clone of the repo is 835MB (582MB of repository size + 253MB of LFS files).

The repository has no remote branches that might be taking up size. Any idea what's going on here?

Syahrul
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 25, 2025

Hi @Glecko 

I believe there is a problem with the cache PR in the repository, causing the repository size to appear inconsistent when cloning. I recommend doing a bare clone of the repository, pushing it to a new repository, and then deleting the large original repository. This approach should reflect the true size of the repository, as a new bare clone does not include PR data.

Let me know how it goes.

Regards,
Syahrul

Glecko August 25, 2025

Is there no way to clear that stale PR cache without deleting the entire repository?

I'd hate to lose all the repo config (permissions etc.).

Syahrul
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 26, 2025

Hey @Glecko 

I have raised a support ticket on your behalf. Please respond to the ticket on the Support portal to proceed further.

Regards,
Syahrul

0 votes
Akhand Pratap Singh
Community Champion
August 23, 2025

Hello @Glecko ,

Good day, Welcome to Atlassian Community!!

I have request Atlassian Support team for assistance, they will manually initiate garbage collection (GC), they will reach out to you on this same thread within 2 business days.

Best Regards,
Akhand

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin Site Admin
TAGS
AUG Leaders

Atlassian Community Events