dvc gc

Remove unused files and directories from the cache or remote storage. More information: https://dvc.org/doc/command-reference/gc.

dvc gc {{[-w|--workspace]}}

dvc gc {{[-a|--all-branches]}} {{[-T|--all-tags]}} {{[-a|--all-commits]}}

dvc gc {{[-a|--all-commits]}} {{[-c|--cloud]}}

dvc gc {{[-a|--all-commits]}} {{[-c|--cloud]}} {{[-r|--remote]}} {{remote_name}}