Forums

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

how to safely clean all LFS from all repos in bitbucket

Mohamed Hamed
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!
January 23, 2026

Dear Bitbucket Support/Community,

I am writing to request guidance on safely reclaiming LFS storage space across all repositories in our workspace.

Our Situation:
We currently have approximately 3.7 TB of Git LFS data consumed. Our account stopped functioning correctly two days ago, likely due to exceeding storage limits.

Our Goal:
We need to drastically reduce our LFS usage. We do not need to retain any of the large historical binary files; however, we must keep the repositories themselves functional (maintenance of commit history, text-based source code, and branches is essential).

Questions:

  1. Safe Cleanup Procedure: What is the recommended, safe method to remove LFS objects from the server storage for all repositories? We understand git lfs prune cleans local files, but we need to ensure the server storage is freed. 
    "Is there a method to bulk delete these files? Due to the high volume (approximately 100,000 files), deleting them manually via the UI would take an impractical amount of time."

  2. Local Cleanup: How can we enforce this cleanup on local developer machines to ensure the large files don't accidentally get pushed back?

  3. Account Status: Our LFS usage has been high (around 3.7 TB) for some time, but the account only stopped working/locked out two days ago. Was there a specific policy update, grace period expiration, or billing trigger that caused this enforcement to kick in now?

We appreciate any advice or documentation you can provide to help us resolve this quickly.

Thank you.

1 answer

0 votes
Mark C
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 27, 2026

Hi @Mohamed Hamed

Welcome to the community.

I checked your workspace on our end.

It appears that the workspace plan was downgraded to the Free plan due to payment problem, that is why you're getting blocked because the workspace has 17 users while the Free plan's limit is only 5.

I'd highly recommend sorting out the workspace plan payment first you make any changes with your LFS storage.

Let me know how it goes.

Regards,
Mark C

Suggest an answer

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

Atlassian Community Events