Forums

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

Request Garbage Collection

Swikar Bhattarai
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 3, 2025 edited

Hi there,

I have cleaned up and rewritten the history on a repo but Bitbucket shows the size has not much reduced. I would like to request a manual garbage collection on the following repo:

[REDACTED]

2 answers

1 accepted

0 votes
Answer accepted
Tansu Akdeniz
Community Champion
June 3, 2025

Hi @Swikar Bhattarai 

Welcome to the community.

The Atlassian support team has been notified and they will reach out to you here.

0 votes
Ben
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 3, 2025

Hi Swikar,

I have taken a look at your repositories that are > 100MB in size and can see that automated garbage collection process have executed on these, but the size has not reduced.

Unfortunately, this is because you have a number of pull requests in those repositories. Some time ago, changes were made to speed up complex PR diff calculation, and any large files present at the time of PR creation are stored on the server-side. As these are stored server-side as metadata, they cannot be targetted with gc operations.

To resolve this, you have 2 options here:

  1. Perform a clone of the large repository locally, then push it to a new repository and delete the original repository - this newly pushed repository will contain all the commit history/files minus all the PR's (and thus the size will be reduced as a result): https://support.atlassian.com/bitbucket-cloud/kb/how-to-duplicate-a-bitbucket-cloud-repository/ 
  2. Upgrade to a paid plan, which does not have this 1GB size restriction

Please let me know if you need further assistance/clarification on this.

Cheers!

- Ben (Bitbucket Cloud Support)

Suggest an answer

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

Atlassian Community Events