I can delete LFS files from Bitbucket Cloud https://confluence.atlassian.com/bitbucket/use-git-lfs-with-existing-bitbucket-repositories-829078749.html#UseGitLFSwithexistingBitbucketrepositories-DeleteindividualLFSfilesfromyourrepository
Can I delete LFS files from Bitbucket Server?
You can delete the file in LFS but the process is not the same as compare to the Bitbucket Cloud. You can proceed with the following steps:
$ git filter-branch --force --tree-filter 'rm -f path/to/big_file.mpg' HEAD
$ git reflog expire --expire=now --all && git gc --prune=now --aggressive
After you remove files from Git LFS, the Git LFS objects still exist on the remote storage and will continue to count toward your Git LFS storage quota.
Hello @Baskar Annamalai
We are currently two years after your latest post. Could you please let me know if anything regarding this topic has been changed?
Currently we are facing the same issue where we have a repository which we cannot migrate from Bitbucket Server to the Cloud since it has LFS pointers pointing to LFS files. We do not want to remove and recreate the entire repository cause it has a good amount of branches, tags, webhooks etc. linked to it.
The only way to migrate to the Cloud with a repository containing LFS pointers was by checking out the repository and manually, via Git Bash for example, pushing the repository to the new repository in the Cloud. This works but we will lose our pull request history which we need since we have a Jira instance running with references to these pull requests.
Currently the Atlassian migration tool does not allow LFS repositories to be migrated. Could you please inform me if you see another way of removing the LFS pointers from a repository or to migrate to the Cloud without losing the pull request history when having LFS files within the repository?
Beginning on April 4th, we will be implementing push limits. This means that your push cannot be completed if it is over 3.5 GB. If you do attempt to complete a push that is over 3.5 GB, it will fail...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events