Clean Up Development Machine
Problem: Your development machine is running low on disk space with hundreds ofnode_modules, target, and other dependency folders scattered across projects.
Solution: Use pumu sweep to scan and interactively clean up all heavy dependency folders across your projects.
- Use the interactive selection to review each folder before deletion
- Deselect active projects youβre currently working on
- Press
ato select all orito invert selection - This can free up several gigabytes in seconds
Preview Disk Usage Before Deleting
Problem: You want to see whatβs taking up space across your workspace without accidentally deleting anything. Solution: Usepumu list to perform a dry-run scan that shows all heavy folders and total space that can be freed.
- Use
--pathflag to scan a specific directory:pumu list --path ~/dev - Red folders (π¨) are over 1 GB - prioritize these for cleanup
- Yellow folders (β οΈ) are 100 MB - 1 GB - moderate space users
- This is completely safe - nothing is deleted in list mode
Bulk Cleanup with Reinstall
Problem: You need to clean up multiple projects but want to ensure dependencies are reinstalled so the projects remain functional. Solution: Usepumu sweep --reinstall to delete heavy folders and then choose which projects to reinstall.
- Donβt reinstall old or archived projects youβre not using
- Pumu automatically detects the correct package manager for each project
- Use
--no-selectflag to skip interactive prompts:pumu sweep --reinstall --no-select
Fix Broken Dependencies Across Projects
Problem: Several projects have corrupted or incomplete dependencies causing build failures or missing packages. Solution: Usepumu repair to automatically detect and fix broken dependencies across all projects.
- Repair mode runs health checks before taking any action
- Use
--verboseto see details for all projects including healthy ones - Health checks are ecosystem-specific:
npm lsfor npm,cargo checkfor Rust, etc. - Only projects with detected issues are repaired - healthy projects are left untouched
Safe Cleanup (Prune Mode)
Problem: You want to clean up disk space but are worried about accidentally deleting dependencies from active projects. Solution: Usepumu prune for intelligent, score-based cleanup that only removes folders that are safe to delete.
| Score | Reason | Safety Level |
|---|---|---|
| 90-95 | Orphan folder (no lockfile) or build cache | Very Safe |
| 60-80 | Stale lockfile (30-90+ days) | Safe |
| 45 | Dependency folder with lockfile | Moderate |
| 15-20 | Active project or uncommitted changes | Protected |
- Preview first with
--dry-run:pumu prune --dry-run - Increase safety with higher threshold:
pumu prune --threshold 80 - Prune mode is less destructive than sweep - perfect for regular maintenance
- Folders with uncommitted changes are automatically protected
CI/CD Cleanup Scenarios
Problem: Your CI/CD pipeline needs to clean up dependency folders before rebuilding to ensure a fresh build environment. Solution: Usepumu sweep --no-select in CI scripts to skip interactive prompts and delete all found folders.
- Use
--no-selectflag to avoid hanging on interactive prompts - Default mode (
pumu) is perfect for single-directory refreshes - Consider using
pumu repairbefore builds to catch dependency issues early - Combine with
--pathto target specific directories
Working with Monorepos
Problem: Your monorepo has multiple packages, each with their ownnode_modules, creating significant disk space usage.
Solution: Scan from the monorepo root to find and manage all dependency folders across packages.
- Use interactive sweep to selectively clean specific packages
- Build caches (
.next,dist) are always safe to remove - Consider using prune mode for intelligent cleanup of stale packages
- Some monorepos use workspace hoisting - Pumu detects both hoisted and per-package
node_modules
Developer Onboarding (Free Up Space Quickly)
Problem: A new developerβs machine is running out of space after cloning multiple repositories with dependencies. Solution: Quick workflow to audit and free up space immediately. Step 1: See whatβs taking up space- Small workspace (5-10 projects): 2-5 GB
- Medium workspace (20-30 projects): 10-20 GB
- Large workspace (50+ projects): 30-50+ GB
- β
Run
pumu listto audit disk usage - β
Use
pumu prunefor safe initial cleanup - β Archive or delete old project folders entirely
- β Keep only active projects with dependencies installed
- β Set up regular cleanup schedule (weekly/monthly)
Common Workflows
Weekly Maintenance
Before Major Update
Quick Space Check
Full Workspace Reset
Next Steps
Now that you understand how to use Pumu for different scenarios:Commands Reference
Learn all available commands and flags in detail
Safety Features
Learn about Pumuβs safety mechanisms
Package Managers
See how Pumu detects and works with different ecosystems
Performance Tips
Optimize scanning and cleanup for large workspaces