Thursday, August 23, 2018

Cleaning up your Anaconda installations


Anaconda installation can get big
Anaconda installation can get big



We can try going into the 'pkgs' directory and manually clean them up.

Or, we can go the easy way, by using the 'conda clean' command.

You can also run the command in dry-run mode to see what would get cleaned up,

conda clean --all --dry-run

Once you're satisfied with what might be deleted, you can run the clean up,

conda clean --all

This will clean the index cache, lock files, tarballs, unused cache packages, and the source cache.

Cleaning the tarballs

Cleaning the tarballs #2

Cleaning the packages

Cleaning the packages #2

Cleaning the source cache

Based on your usage, this would clean up from a couple of GBs to maybe 10+GB.

See the command in action,

Build Deeper: The Path to Deep Learning


Get your copy now!


  1. How does it define "unused"? I would hate to remove something and then need it.