Installation
Choose your preferred installation method:Your first cleanup
List heavy folders in your workspace
Start by scanning your projects directory to see what’s taking up space. This is a dry-run that won’t delete anything:You’ll see a color-coded table showing all dependency folders:
Color coding helps you prioritize:
- Red (🚨) = Folders over 1 GB (critical space users)
- Yellow (⚠️) = Folders between 100 MB - 1 GB (moderate)
- Green = Folders under 100 MB (minor)
Sweep with interactive selection
Now let’s clean up those folders. By default, Pumu shows an interactive multi-select so you can choose exactly what to delete:You’ll see an interactive TUI selector:Navigation shortcuts:
↑/↓ork/j- Move cursor up/downspace- Toggle itema- Select alln- Deselect alli- Invert selectionenter- Confirm and deleteqoresc- Cancel
enter to confirm.Sweep with reinstall
Want to clean up and automatically reinstall dependencies? Add the This will:
--reinstall flag:- Show the interactive selector for deletion
- Delete selected folders
- Show another selector asking which projects to reinstall
- Automatically detect package managers and run the appropriate install command
Common scenarios
Preview disk usage
See what’s taking up space across all your projects without deleting anything:Perfect for understanding where your disk space is going before taking action.
Clean specific directory
Use the Works with all commands:
-p or --path flag to scan a specific directory:list, sweep, repair, and prune.Fix broken dependencies
Automatically detect and repair corrupted or broken dependencies:Pumu checks dependency health using:
npm ls --jsonfor npm/pnpmyarn check --verify-treefor yarncargo checkfor Rustgo mod verifyfor Gopip checkfor Python
Bulk cleanup without prompts
Skip the interactive selection and delete all found folders:Use with caution! This immediately deletes all dependency folders without confirmation.
Understanding repair mode
Repair mode is powerful for fixing broken projects across your entire workspace:Supported dependency folders
Pumu can detect and clean these dependency and build folders:| Folder | Package Manager(s) | Typical Size |
|---|---|---|
node_modules | npm, yarn, pnpm, bun, deno | 50-500+ MB |
target | cargo (Rust) | 100-2000+ MB |
.venv | pip (Python virtual env) | 50-300+ MB |
.next | Next.js | 100-500+ MB |
.svelte-kit | SvelteKit | 50-200+ MB |
dist | Various build tools | 10-100+ MB |
build | Various build tools | 10-100+ MB |
Safety features
Pumu is designed with safety in mind:- Interactive selection by default - Choose exactly what to delete via TUI
- Dry-run with
list- Preview before deletion - Smart folder detection - Only removes known dependency folders
- Ignored system paths - Skips
.git,.cache,Library, IDE folders, and system directories - Concurrent safe operations - Uses mutexes and atomic operations to prevent race conditions
- Error resilience - Continues processing even if individual operations fail
Next steps
Explore sweep command
Learn about all sweep options, flags, and advanced usage patterns
Package manager detection
Understand how Pumu detects package managers and what lockfiles it looks for