CLI mode
Configure targets and clean from the command line.
mac-cleanup --select # Configure cleanup targets
mac-cleanup --clean --dry-run # Preview cleanup report
mac-cleanup --clean # Execute cleanupFor command-line cleanup, see the examples below.
1) Select targets
$ mac-cleanup --select
Select cleanup targets ● safe ○ moderate
─────────────────────────────────────────────────────────
Name Size
[ ] ● Trash 0 B
[✓] ○ App Caches 3.2 GB
[✓] ○ System Logs 259.7 MB
▸ [✓] ● Go Build Cache 845.0 MB
[✓] ○ Docker 2.8 GB
[✓] ● Homebrew Cache 1.5 GB
[ ] ● Chrome Cache 0 B
─────────────────────────────────────────────────────────
Selected: 5
↑/↓ Move space Select s Save ? Help q Cancel
2) Preview / Clean
$ mac-cleanup --clean --dry-run
Dry Run Report
--------------
Mode: Dry Run
Summary Highlights
Freed (dry-run): 8.6 GB 1. App Caches - 3.2 GB (523 items)
2. Docker - 2.8 GB (12 items)
3. Homebrew Cache - 1.5 GB (34 items)
Details
STATUS CATEGORY ITEMS SIZE
OK App Caches 523 3.2 GB
OK Docker 12 2.8 GB
OK Homebrew Cache 34 1.5 GB
OK Go Build Cache 89 845.0 MB
OK System Logs 67 259.7 MB