conda clean¶
Remove unused packages and caches.
Options:
usage: conda clean [-h] [-a] [-i] [-l] [-p] [-t] [-f] [-d] [--json] [-q] [-v]
[-y]
Removal Targets¶
| -a, --all | Remove index cache, lock files, unused cache packages, and tarballs. |
| -i, --index-cache | |
| Remove index cache. | |
| -l, --lock | Remove all conda lock files. |
| -p, --packages | Remove unused packages from writable package caches. WARNING: This does not check for packages installed using symlinks back to the package cache. |
| -t, --tarballs | Remove cached package tarballs. |
| -f, --force-pkgs-dirs | |
| Remove all writable package caches. This option is not included with the –all flag. WARNING: This will break environments with packages installed using symlinks back to the package cache. | |
Output, Prompt, and Flow Control Options¶
| -d, --dry-run | Only display what would have been done. |
| --json | Report all output as json. Suitable for using conda programmatically. |
| -q, --quiet | Do not display progress bar. |
| -v, --verbose | Can be used multiple times. Once for INFO, twice for DEBUG, three times for TRACE. |
| -y, --yes | Do not ask for confirmation. |
Examples:
conda clean –tarballs