Bottom Line: It is 100% safe to clear the Conda package cache. Running conda clean --all will NOT delete your active Conda Python environments, installed packages, or Jupyter Notebooks.
What is the Conda pkgs Folder?
Located at ~/anaconda3/pkgs or ~/miniconda3/pkgs (and %USERPROFILE%\anaconda3\pkgs on Windows), this folder is managed by Anaconda and Miniconda.
When you create Conda environments (conda create -n myenv) or install Data Science libraries (NumPy, SciPy, Pandas, PyTorch), Conda downloads .tar.bz2 or .conda package archives into pkgs/ and extracts them before hardlinking to environment directories.
Conda never automatically deletes downloaded package tarballs. Over years of Python Data Science projects, pkgs/ hoards 10 GB to 40 GB+.
Can You Delete Conda Package Cache?
✅ Yes, it is safe to clear.
- Active environments stay functional: Installed libraries inside
anaconda3/envs/remain 100% operational. - Official Conda utility:
conda cleanis Conda’s official maintenance tool designed specifically to purge package caches.
How to Safely Clean Up Conda Cache
Method 1: Using the Conda CLI (Recommended)
- Open your terminal or Anaconda Prompt.
- Remove unused package tarballs, indexing caches, and temporary files:
conda clean --all
Related Guides
- Learn about deleting pip cache.
- How to clean up PyCache folders.
- Check if you can clean Python venv folders.
Discussion
Loading authentication...