#6351·git-lfs

It seems impossible to get rid of LFS tracked files

Author: schaefiCreated Sep 28, 2026Updated Oct 1, 2026
Labelsquestionserver-implementation

Describe the bug There is the following github repository https://github.com/OSInside/flake-pilot. The repository had a git-lfs setup before and some files tracked as git-lfs objects. I want to get rid of all LFS tracked data because it eat up all the storage. I did this as follows:

bash
git lfs fetch --all
git lfs checkout
git lfs uninstall

delete all filters from .gitattributes

git lfs untrack '*.xz'

delete all commits referencing a former git LFS object from the project using git-filter-repo

check the history and the data, all removed, nothing there. Feel free to check the history of the project
yourself, I don't see any LFS objects anymore

git push --force

But it still seems nothing has been removed on the remote LFS server. Because

bash
git lfs ls-files --all

11f6e77c7b - appstore/firecracker/claude.x86_64-1.15.6-0.tar.xz
b516e3c872 - appstore/firecracker/leap.x86_64-1.15.6-0.tar.xz
d53209669c - appstore/firecracker/claude.x86_64-1.15.6-0.tar.xz
1218a8e3cc - appstore/firecracker/claude.x86_64-1.15.6-0.tar.xz
c121b7b2b9 - appstore/firecracker/claude.x86_64-1.15.6-0.tar.xz
ba1ee61649 - appstore/firecracker/claude.x86_64-1.15.6-0.tar.xz
96dd00430d - appstore/firecracker/leap.x86_64-1.15.6-0.tar.xz
98988df3de - appstore/firecracker/claude.x86_64-1.15.6-0.tar.xz
dd82619300 - appstore/firecracker/leap.x86_64-1.15.6-0.tar.xz
bf57930276 - appstore/firecracker/claude.x86_64-1.15.6-0.tar.xz
07d576796b - appstore/firecracker/leap.x86_64-1.15.6-0.tar.xz
3ea458829a - appstore/firecracker/claude.x86_64-1.15.6-0.tar.xz
67b117b596 - appstore/firecracker/leap.x86_64-1.15.6-0.tar.xz
f4b07b1068 - appstore/firecracker/claude.x86_64-1.15.6-0.tar.xz
5fec578955 - appstore/firecracker/leap.x86_64-1.15.6-0.tar.xz
d68da40684 - appstore/firecracker/claude.x86_64-1.15.6-0.tar.xz
38e5efa430 - appstore/firecracker/leap.x86_64-1.15.6-0.tar.xz
e8d3e9d4ac - appstore/firecracker/claude.x86_64-1.15.6-0.tar.xz
8604d44149 - appstore/firecracker/leap.x86_64-1.15.6-0.tar.xz
2212339415 - appstore/firecracker/claude.x86_64-1.15.6-0.tar.xz
d9a99f0290 - appstore/firecracker/claude.x86_64-1.15.6-0.tar.xz

still lists them all. I'm clueless what else I could do to get rid of this data and very much appreciate your help as it feels like a bug. I apologize if I understood the concepts incorrectly and kindly ask for a procedure how to remove the remote data.

To Reproduce Steps to reproduce the behavior:

I'm sorry for a reproducer I would need to push an LFS object and I have zero capacity available anymore.

Expected behavior

The git LFS objects should be deleted on the remote end. I expect git lfs ls-files --all to show no output

System environment

bash
openSUSE Leap 16

git-lfs --version
git-lfs/3.7.1 (GitHub; linux amd64; go 1.26.6)

git config -l
user.name=Marcus Schäfer
user.email=....
user.signingkey=...
push.default=current
commit.gpgsign=true
core.repositoryformatversion=0
core.filemode=true
core.bare=false
core.logallrefupdates=true
[email protected]:OSInside/flake-pilot.git
remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
branch.main.remote=origin
branch.main.merge=refs/heads/main

Output of git lfs env

bash
git lfs env
git-lfs/3.6.1 (GitHub; linux amd64; go 1.24.6)
git version 2.51.0

Endpoint=https://github.com/OSInside/flake-pilot.git/info/lfs (auth=none)
  [email protected]:OSInside/flake-pilot.git
LocalWorkingDir=/home/ms/Project/flake-pilot
LocalGitDir=/home/ms/Project/flake-pilot/.git
LocalGitStorageDir=/home/ms/Project/flake-pilot/.git
LocalMediaDir=/home/ms/Project/flake-pilot/.git/lfs/objects
LocalReferenceDirs=
TempDir=/home/ms/Project/flake-pilot/.git/lfs/tmp
ConcurrentTransfers=8
TusTransfers=false
BasicTransfersOnly=false
SkipDownloadErrors=false
FetchRecentAlways=false
FetchRecentRefsDays=7
FetchRecentCommitsDays=0
FetchRecentRefsIncludeRemotes=true
PruneOffsetDays=3
PruneVerifyRemoteAlways=false
PruneVerifyUnreachableAlways=false
PruneRemoteName=origin
LfsStorageDir=/home/ms/Project/flake-pilot/.git/lfs
AccessDownload=none
AccessUpload=none
DownloadTransfers=basic,lfs-standalone-file,ssh
UploadTransfers=basic,lfs-standalone-file,ssh
GIT_BRANCH=main
GIT_EXEC_PATH=/usr/libexec/git
git config filter.lfs.process = ""
git config filter.lfs.smudge = ""
git config filter.lfs.clean = ""

Thank you very much for any help