# Removing a File From the Complete Git History
```shell
git filter-branch --force --index-filter \
  "git rm --cached --ignore-unmatch PATH-TO-YOUR-FILE-WITH-SENSITIVE-DATA" \
  --prune-empty --tag-name-filter cat -- --all
```
Where `--tag-name-filter cat` indicates tags should be rewritten too.