git filter-branch --index-filter "git rm -rf --cached --ignore-unmatch path_to_file" HEAD
git filter-repo --invert-paths --path <path to file> git push --force origin main