There are situations where you may want to "un-track" files or directories added in error to DVC.
$ dvc remove data.csv.dvc $ git status Untracked files: data.csv
You can run
dvc gc with the
-w option to remove the data (and all of it's
previous versions, if any) from the cache:
$ dvc gc -w
Note that a very similar procedure works for
dvc.yamlstages and their outputs.