mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-01 21:42:41 +00:00
26 lines
758 B
Plaintext
26 lines
758 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# 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}}`
|