Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How do I remove LFS from a repository?

Michael Holmes June 30, 2022

I am using a Bitbucket repo (containing a Visual Studio Solution) that has LFS enabled, but I don't believe it needs LFS.

I've checked in Repository Settings > Git LFS and it lists a single entry - the 'bin' folder. As I believe is normal in a Visual Studio project, the bin folder is not part of the repo

How do I remove the LFS please?

2 answers

1 accepted

0 votes
Answer accepted
Syahrul
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 3, 2022

Hey @Michael Holmes 

G'Day!

If you wish to delete the LFS file in your repository, navigate to the Repository settings > Git LFS and click the "..." drop-down on the right side of the files, then click Delete files.

This will delete the LFS files from your repositories, but if you have the features enabled locally and track, it may re-upload the files in the future. So please ensure the files are not tracked in your .gitattributes

You can also untrack the files with the following git commands:

git lfs untrack "<pattern>"

I hope this helps.

Cheers,
Syahrul

Michael Holmes July 13, 2022

Many thanks Syahrul!

Like Syahrul likes this
0 votes
ahmed.sobhy December 19, 2022

how to delete multiple files though? it is unpractical to click on each file and delete it manually from the settings

Suggest an answer

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

Atlassian Community Events