conda
Clear all packages, indexes and temporary files in the conda cache,
conda clean --all
Only clear the packages in the conda cache, not the index and temporary files,
conda clean --packages
pip
Clear all packages and index files in pip cache,
pip cache purge