2020-07-23 21:25:39 +05:30
|
|
|
# dvc gc
|
|
|
|
|
2020-07-31 20:33:25 +05:30
|
|
|
> Remove unused files and directories from the cache or remote storage.
|
2020-07-23 21:25:39 +05:30
|
|
|
> More information: <https://dvc.org/doc/command-reference/gc>.
|
|
|
|
|
2020-07-31 20:33:25 +05:30
|
|
|
- Garbage collect from the cache, keeping only versions referenced by the current workspace:
|
2020-07-23 21:25:39 +05:30
|
|
|
|
2025-04-25 14:45:48 +03:00
|
|
|
`dvc gc {{[-w|--workspace]}}`
|
2020-07-23 21:25:39 +05:30
|
|
|
|
2020-07-31 20:33:25 +05:30
|
|
|
- Garbage collect from the cache, keeping only versions referenced by branch, tags, and commits:
|
2020-07-23 21:25:39 +05:30
|
|
|
|
2025-04-25 14:45:48 +03:00
|
|
|
`dvc gc {{[-a|--all-branches]}} {{[-T|--all-tags]}} {{[-a|--all-commits]}}`
|
2020-07-23 21:25:39 +05:30
|
|
|
|
2020-07-31 20:33:25 +05:30
|
|
|
- Garbage collect from the cache, including the default cloud remote storage (if set):
|
2020-07-23 21:25:39 +05:30
|
|
|
|
2025-04-25 14:45:48 +03:00
|
|
|
`dvc gc {{[-a|--all-commits]}} {{[-c|--cloud]}}`
|
2020-07-23 21:25:39 +05:30
|
|
|
|
2020-07-31 20:33:25 +05:30
|
|
|
- Garbage collect from the cache, including a specific cloud remote storage:
|
2020-07-23 21:25:39 +05:30
|
|
|
|
2025-04-25 14:45:48 +03:00
|
|
|
`dvc gc {{[-a|--all-commits]}} {{[-c|--cloud]}} {{[-r|--remote]}} {{remote_name}}`
|