Forums

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

Repo size: remains the same after deleting large files

Alexgijutsu
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!
August 17, 2025

Hi!

I went through all the branches of two repos and deleted a good number of large files from them, but the size still remains the same. Would it possible to run garbage collection on them or double-check their size?

The size of the two repos are 1.3GB and 84.3MB.

Thanks,

Alex

 

2 answers

1 accepted

1 vote
Answer accepted
Ben
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 18, 2025

Hi @Alexgijutsu 

It is expected behaviour that the size will remain until a gc is performed on the server side. This is either performed automatically (once a certain garbage threshhold is reached) or manually by a support engineer.

I've just gone ahead and executed this manually - this has reduced your repositories as follows:

  • 84MB > 33MB
  • 1.3GB > 604MB

You are now well within the workspace size limit, so will not be blocked from pushing anymore.

Cheers!

- Ben (Bitbucket Cloud Support)

Alexgijutsu
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!
August 18, 2025

That is awesome, thanks so much, Ben!

0 votes
Daria Kulikova_GitProtect_io
Community Champion
August 18, 2025

Hello @Alexgijutsu and welcome to the Atlassian Community!

When you delete files from branches, they’re no longer referenced in your working history, but they still exist in the repository’s Git object database until garbage collection or history rewriting actually removes them. It can be the reason why the size of the repository isn't shrinking right away. 

Here is an article on this topic: https://support.atlassian.com/bitbucket-cloud/kb/repository-size-remains-the-same-after-deleting-large-files-and-running-garbage-collection-gc-on-the-remote/

Also, it's worth mentioning that before any deletion, it's better to have the data backed up, just in case you need that data for future reference. 

Regards,

Daria

Alexgijutsu
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!
August 18, 2025

Thank you, Daria!

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