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.
Cargo writes every build into the project's target directory, and the debug and release builds of a mid-sized crate with its dependencies take gigabytes. cargo build recreates it, so the target directory of a project you are not working on is one full rebuild away from being free space.
By hand
In one project:
For every project under a directory, run cargo clean next to each Cargo.toml:
To see the sizes first:
That list goes by name, so it also shows Maven target directories and any other folder called target.
With kuizer
kuizer counts a target directory only next to a Cargo.toml and only when Cargo's own CACHEDIR.TAG is inside it, so a Maven build or a folder you named target yourself is not on the list.
--idle 3mo limits the run to projects without changes for three months. The folders are deleted for good by default. With delete.mode = "trash" in the config file they move to the trash, and kuizer restore --last brings the last run back.
The registry and git caches
Downloaded crates and git checkouts live under ~/.cargo/registry and ~/.cargo/git, shared by every project. kuizer cache lists their size next to the other tool caches, and Cargo downloads what the next build needs again. Since Rust 1.88, Cargo also removes files it has not used for three months on its own, or one month for files that came from the local system, unless cache.auto-clean-frequency = "never" is set in its config.
Old toolchains are a separate matter: rustup toolchain list shows them, and kuizer toolchain lists which ones no project under a path pins. See Remove unused toolchain versions.
Delete every node_modules folder
Find all node_modules folders under your projects on Linux and macOS, see their sizes and remove them, by hand with find and du or with kuizer.
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.