Mole Logo

Mole

🧹 Like a mole, dig deep to clean your mac.

## Features - 🐦 Deep Clean: System/user caches, logs, temp and more - πŸ›‘οΈ Safe by default: Skips critical system and input method settings - πŸ‘€ App Uninstall: Remove app bundle and related data comprehensively - πŸ‘» Smooth TUI: Fast arrow-key menus with pagination for large lists ## Installation ```bash curl -fsSL https://raw.githubusercontent.com/tw93/mole/main/install.sh | bash ``` ## Usage ```bash mole # Interactive main menu mole clean # Deep clean (smart sudo handling) mole uninstall # Interactive app uninstaller mole --help # Show help ``` ### Example Output ```bash πŸ•³οΈ Mole - System Cleanup ======================== 🍎 Detected: Apple Silicon | πŸ’Ύ Free space: 45.2GB πŸš€ Mode: User-level cleanup (no password required) β–Ά System essentials βœ“ User app cache βœ“ User app logs βœ“ Trash β–Ά Browser cleanup βœ“ Safari cache βœ“ Chrome cache β–Ά Developer tools βœ“ npm cache βœ“ Docker resources βœ“ Homebrew cache πŸŽ‰ Cleanup complete | πŸ’Ύ Freed space: 8.45GB πŸ“Š Items processed: 342 | πŸ’Ύ Free space now: 53.7GB ``` ## What Gets Cleaned | Category | Items Cleaned | Safety | |---|---|---| | πŸ—‚οΈ System | App caches, logs, trash, crash reports, QuickLook thumbnails | Safe | | 🌐 Browsers | Safari, Chrome, Edge, Arc, Brave, Firefox, Opera, Vivaldi | Safe | | πŸ’» Developer | Node.js/npm, Python/pip, Go, Rust/cargo, Docker, Homebrew, Git | Safe | | πŸ› οΈ IDEs | Xcode, VS Code, JetBrains, Android Studio, Unity, Figma | Safe | | πŸ“± Apps | Common app caches (e.g., Slack, Discord, Teams, Notion, 1Password) | Safe | | 🍎 Apple Silicon | Rosetta 2, media services, user activity caches | Safe | ## Uninstaller - Fast scan of `/Applications` with system-app filtering (e.g., `com.apple.*`) - Ranks apps by last used time and shows size hints - Two modes: batch multi-select (checkbox) or quick single-select - Detects running apps and force‑quits them before removal - Single confirmation for the whole batch with estimated space to free - Cleans thoroughly and safely: - App bundle (`.app`) - `~/Library/Application Support/` - `~/Library/Caches/` - `~/Library/Preferences/.plist` - `~/Library/Logs/` - `~/Library/Saved Application State/.savedState` - `~/Library/Containers/` and related Group Containers - Final summary: apps removed, files cleaned, total disk space reclaimed ## Support If Mole has been helpful to you: - **Star this repository** and share with fellow Mac users - **Report issues** or suggest new cleanup targets - I have two cats. If Mole helps you, you can feed them canned food πŸ₯©πŸ€ ## License MIT License Β© [tw93](https://github.com/tw93) - Feel free to enjoy and contribute to open source.