Remove old Python virtual environments and caches
Find every .venv and venv folder, the __pycache__ directories and the pip and uv caches on Linux and macOS, and remove the ones you no longer need by hand or with kuizer.
A Python project usually carries a virtual environment in .venv or venv, a __pycache__ folder next to every module, and often a .pytest_cache, .mypy_cache, .ruff_cache or .tox. pip and uv keep a download cache outside the project as well.
By hand
List the environments with their sizes:
Remove the bytecode caches, which Python writes again on the next import:
An environment is recreated from the project's requirements.txt, pyproject.toml or lockfile:
Check that such a file exists before you remove an environment. If the packages inside were installed by hand, the environment is the only record of them.
The caches outside your projects:
uv cache prune removes entries no current project uses, uv cache clean removes everything.
With kuizer
kuizer recognises an environment by the pyvenv.cfg inside it and marks it review, not safe, so it is never part of the default selection. __pycache__, .pytest_cache, .mypy_cache, .ruff_cache, .tox and .nox are safe and go with the default run.
The last command lists every environment, says how many are marked review, and asks before deleting them. Deletion is permanent by default; with delete.mode = "trash" in the config file the environments move to the trash and kuizer restore --last puts a run back. kuizer cache lists the pip and uv caches with the other tool caches.
Clean every Cargo target directory
Remove the target directories of all your Rust projects on Linux and macOS with cargo clean, find or kuizer, and what Cargo keeps in ~/.cargo.
Free Docker and Podman disk space
See what Docker and Podman keep on disk, and remove dangling images, stopped containers, the build cache and unused volumes with the prune commands or with kuizer.