LinuxCommandLibrary

dvc-gc

Remove unused files and directories from the cache or remote storage.

TLDR

Garbage collect from the cache, keeping only versions referenced by the current workspace

$ dvc gc --workspace
copy


Garbage collect from the cache, keeping only versions referenced by branch, tags, and commits
$ dvc gc --all-branches --all-tags --all-commits
copy


Garbage collect from the cache, including the default cloud remote storage (if set)
$ dvc gc --all-commits --cloud
copy


Garbage collect from the cache, including a specific cloud remote storage
$ dvc gc --all-commits --cloud --remote [remote_name]
copy

Copied to clipboard