Getting started
Install purgeit, see what it finds, and reclaim your first gigabytes.
purgeit runs on macOS, Linux and Windows. Via npm it needs Node.js 22 or newer; the standalone binaries need nothing. Releases are published to npm with signed provenance, so you can verify what you run with npm audit signatures.
Run it
No install needed:
npx purgeit ~/devWith no directory it scans the current one. Add --discover to also scan the places this machine keeps projects (~/dev, ~/Projects, ~/Code, AI agent worktrees, and any home folder that holds projects).
Look around
The interactive UI fills in as artifacts are measured. Press space on what you want gone, enter to review, y to delete.
Or stay in the shell
List without changing anything, then clean with a preview first:
$ purgeit scan ~/dev --min-size 100MB$ purgeit clean ~/dev --min-size 100MB --dry-run # runs every check, deletes nothing$ purgeit clean ~/dev --min-size 100MB # asks firstWhat you are looking at
purgeit lists projects, not individual folders:
$ purgeit scan ~/devPROJECT SIZE ITEMS ACTIVE ECOSYSTEMSold-api 1.3 GB 2 4mo JS/TSmail 6.9 GB 1 5m Rustpushstack (+1 worktree) 2 GB 5 2m JS/TS 8 artifacts · 10.2 GB reclaimable — scanned 1 root in 2.1s1.3 GB of that is in 1 dormant project — `purgeit clean --stale` targets exactly those.| Column | Meaning |
|---|---|
| SIZE | Disk space deleting would free |
| ITEMS | Artifacts in the project (node_modules, target, .next, …) |
| ACTIVE | When the project was last worked on — from git's log; dormant after 30 days |
| ECOSYSTEMS | Which tools' output it holds |
Use --by artifact for one line per folder, and purgeit explain <path> to see exactly why a folder was matched or skipped.
Start with what is dormant
The biggest safe win is output from projects you haven't touched in months. purgeit clean --stale targets exactly those, and in the UI R selects them.
Safe by default
clean leaves anything modified in the last 7 days alone, never deletes without confirmation (or --yes), and refuses anything it cannot verify. See Clean safely and the safety model.
Make it yours
purgeit init # a starter purgeit.config.ts
source <(purgeit completion zsh) # shell completions (bash, zsh, fish)