putzen
Share on:
Enter Your Mastodon Instance
Copy the link below to share to Mastodon
https://terminaltrove.com/putzen/
A safe cleaner for build and dependency artifacts with an interactive TUI.
Script Preview
Review this script before executing in your terminal.

putzen is a TUI and CLI disk cleaner that removes build and dependency artifacts safely, the name being German for cleaning.
It works on a simple file-to-folder rule, for instance, deleting target when it finds Cargo.toml, node_modules when it finds package.json, and the build folder when it finds a CMakeLists.txt file. It runs in parallel where the filesystem supports it, can run in dry-run mode, and shows a running total of the space it frees.
A separate caches command brings up a TUI to scan caches under your home directory, and visually scores the largest cache files from package managers such as cargo, npm, pnpm, yarn, bun, uv, pip, and hf (huggingface). The caches view ranks each directory by a size-times-age score so stale caches stay visible while fresh ones sit protected behind a floor threshold.
putzen is useful for developers or anyone whose disk fills up quickly with node_modules, and artifact build directories scattered across many projects.

