Today I Learned: Squeaky Clean Anaconda Environments

Monday July 9, 2018 at 08:06 pm CDT

originally published 7/24/2017 on the Hashrocket TIL blog

To delete packages, caches, and other files that aren’t being used in any of your environments run:

conda clean -a -y

The -a flag is to delete all unused files and the -y option runs the clean command without asking for confirmation.

If you want to know what files would be deleted before actually deleting them, run:

conda clean -a --dry-run

Photo by Robert Wiedemann on Unsplash