Skip to content

purgeit

Reclaim disk space from node_modules, dist, target, Pods, and more. Interactive TUI by default, scriptable via flags for CI/cron.

Safe by default

Nothing is selected. Permanent deletion requires explicit multi-select + confirmation.

Interactive TUI

Sortable table with live sizes, full-row highlight selection, and keyboard-driven workflow.

Headless mode

--json and --delete flags for scripting, CI, and cron jobs.

Cloud cleanup

Find and delete forgotten AWS/GCP dev environments — tagged CloudFormation stacks, labeled Compute Engine/GKE resources — see how.

60+ rules, 16 ecosystems

JS/TS, Python, Rust, Go, PHP, Ruby, Java/JVM, .NET, Apple, and more — see them all, or extend with a purgeit.config.ts.

Two scan modes

Projects mode groups by top-level directory; flat mode (--full) scans everything as one unit.

Cross-platform

macOS, Linux, and Windows. Uses du on Unix; pure-Node fallback on Windows.

Terminal window
# Run without installing
npx purgeit ~/dev
# Or install globally
npm install -g purgeit
purgeit ~/dev

No config required. Start with the Interactive TUI reference for the default terminal experience, or the CLI reference for --json, --delete, --dry-run, and every other flag.