System Grab Bag

View all TLDR pages from common (or from all pages)

dvc gc

Remove unused files and directories from the cache or remote storage. More information: https://dvc.org/doc/command-reference/gc.
  • Garbage collect from the cache, keeping only versions referenced by the current workspace:
    dvc gc --workspace
  • Garbage collect from the cache, keeping only versions referenced by branch, tags, and commits:
    dvc gc --all-branches --all-tags --all-commits
  • Garbage collect from the cache, including the default cloud remote storage (if set):
    dvc gc --all-commits --cloud
  • Garbage collect from the cache, including a specific cloud remote storage:
    dvc gc --all-commits --cloud --remote {{remote_name}}

License and Disclaimer

The content on this page is copyright © 2014—present the tldr-pages team and contributors.
This page is used with permission under Creative Commons Attribution 4.0 International License.

While we do attempt to make sure content is accurate, there isn't a warranty of any kind.