All Ecosystems
python

Python

Clean virtual environments, __pycache__, .pytest_cache, and other Python artifacts. Supports venv, virtualenv, conda, and poetry.

Avg. Space Saved

200MB - 2GB per project

Detection Files

4 files

Artifact Types

9 types

Cleanable Artifacts

Cluttered can safely clean these Python build artifacts:

venv/.venv/__pycache__/.pytest_cache/.mypy_cache/.ruff_cache/*.egg-info/dist/build/

Project Detection

Cluttered identifies Python projects by looking for these files:

requirements.txtpyproject.tomlsetup.pyPipfile

Overview

Python projects accumulate virtual environments and cache directories quickly. A single data science project with numpy, pandas, and machine learning libraries can have a virtual environment exceeding 2GB.

What Cluttered Cleans

ArtifactDescriptionTypical Size
venv/ / .venv/Virtual environment directories200MB - 3GB
__pycache__/Compiled Python bytecode10MB - 100MB
.pytest_cache/pytest result cache5MB - 50MB
.mypy_cache/Type checking cache10MB - 200MB
*.egg-info/Package metadata1MB - 10MB

Why Virtual Environments Get Large

Python virtual environments contain:

  • Complete copies of packages (not symlinks)
  • Compiled C extensions (numpy, pandas)
  • Multiple versions of dependencies
  • Platform-specific binaries

A data science stack (numpy, pandas, scikit-learn, tensorflow) can easily exceed 2GB.

Safety Considerations

Cluttered protects your Python projects by:

  • Detecting active Jupyter notebook sessions
  • Checking for running Python processes
  • Identifying recently modified .py files
  • Respecting Poetry and Pipenv lockfiles

Package Manager Support

ManagerDetectionClean Support
pip + venvrequirements.txtFull
Poetrypyproject.tomlFull
PipenvPipfileFull
Condaenvironment.ymlPartial

Frequently Asked Questions

Will cleaning break my project?

No! Your source code and dependency specifications (requirements.txt, pyproject.toml) are never touched. Just run pip install -r requirements.txt to restore.

What about conda environments?

Cluttered detects conda environments but handles them carefully since they can be shared across projects.

Does it clean the global pip cache?

By default, Cluttered focuses on project-local artifacts. Global pip cache cleaning is available in Pro.

  • Node.js - Similar dependency isolation patterns
  • Ruby - Bundler's vendor/bundle is similar
  • Docker - Often used for Python deployments

Ready to clean your Python projects?

Download Cluttered and reclaim your disk space in minutes.