Reclaim disk space from every project — safely.
purgeit finds node_modules, target, dist, Pods and 61 more kinds of regenerable build output across all your projects — and deletes only what it can prove is safe.
$ npx purgeit ~/dev$ purgeit scan ~/devPROJECT SIZE ITEMS ACTIVE ECOSYSTEMSold-api 1.3 GB 2 4mo JS/TSmocha 1.8 GB 3 5mo JS/TS · Applemail 6.9 GB 1 5m Rustpushstack (+1 worktree) 2 GB 5 2m JS/TS 8 projects · 14.8 GB reclaimable — scanned 1 root in 2.1s3.1 GB of that is in 2 dormant projects — purgeit clean --stale targets them. $ purgeit clean ~/dev --stale --dry-runDry run: would delete 5 artifacts, freeing 3.1 GBFour checks between “found it” and “gone”
- 01
Scan
Rules claim directories. One pass measures size, files and last activity.
- 02
Protect
Nested repos, deploy keys and git-tracked files are locked and can’t be selected.
- 03
Review
Nothing preselected. See what, why, and how much — then confirm.
- 04
Verify & delete
Every path is re-checked right before it is removed. Unverifiable means refused.
Safe by construction
Nothing is preselected. Every path is re-verified at the moment of deletion — rules, git, deploy keys, recent activity, symlink tricks.
Fast
One traversal measures size, file count and last activity — as fast as du, while also proving what is safe.
Honest numbers
Sizes are space deleting would really free. Hardlinked files — pnpm’s store — are never double counted.
Projects, not folders
One row per project — worktrees folded in, dormant ones first, one key (R) to select them. Review, then delete.
Scriptable
JSON and NDJSON output, reviewable plans, dry runs and stable exit codes for cron and CI.
Built for AI agents
A guide versioned with the CLI, structured output, and every docs page available as Markdown.
Review first, then apply
Split finding from deleting. scan --format json is a plan: trim it, hand it to a person or an agent, and apply it. At deletion time every entry is re-checked, so a stale plan can’t delete the wrong thing.
$ purgeit scan ~/dev --format json > plan.json# remove the entries you want to keep…$ purgeit clean --plan plan.json --yesdeleted 979.6 MB ~/dev/personal/mocha/node_modulesdeleted 942.9 MB ~/dev/web/tallo/node_modulesDeleted 2 artifacts, freed 1.9 GB