Warning
Experimental Status: The Windows version is currently not mature. If your computer is critical or contains important data, please do not use this tool.
- All-in-one toolkit: CCleaner, IObit Uninstaller, WinDirStat, and Task Manager combined into a single PowerShell toolkit
- Deep cleaning: Scans and removes temp files, caches, and browser leftovers to reclaim gigabytes of space
- Smart uninstaller: Thoroughly removes apps along with AppData, preferences, and hidden remnants
- Disk insights: Visualizes usage, manages large files, and refreshes system services
- Live monitoring: Real-time stats for CPU, memory, disk, and network to diagnose performance issues
Mole is designed for Windows 10/11. This is the native Windows version ported from the macOS original. For macOS users, please visit the main branch for the native macOS version.
- Windows 10/11
- PowerShell 5.1 or later (pre-installed on Windows 10/11)
- Go 1.24+ (for building TUI tools)
Recommended: Run this single command in PowerShell:
iwr -useb https://raw.githubusercontent.com/tw93/Mole/windows/quick-install.ps1 | iexThis will automatically download and install Mole with PATH configuration.
If you prefer to review the code first or customize the installation:
# Clone the repository
git clone https://github.com/tw93/Mole.git
cd Mole
# Switch to windows branch
git checkout windows
# Run the installer
.\install.ps1 -AddToPath
# Optional: Create Start Menu shortcut
.\install.ps1 -AddToPath -CreateShortcutRun:
mo # Interactive menu
mo clean # Deep cleanup
mo uninstall # Remove apps + leftovers
mo optimize # Refresh caches & services
mo analyze # Visual disk explorer
mo status # Live system health dashboard
mo purge # Clean project build artifacts
mo --help # Show help
mo --version # Show installed version
mo clean --dry-run # Preview the cleanup plan
mo clean --whitelist # Manage protected caches
mo clean --dry-run --debug # Detailed preview with risk levels
mo optimize --dry-run # Preview optimization actions
mo optimize --debug # Run with detailed operation logs
mo purge --paths # Configure project scan directories- Safety: Built with strict protections. Preview changes with
mo clean --dry-run. - Be Careful: Although safe by design, file deletion is permanent. Please review operations carefully.
- Debug Mode: Use
--debugfor detailed logs (e.g.,mo clean --debug). Combine with--dry-runfor comprehensive preview including risk levels and file details. - Navigation: Supports arrow keys for TUI navigation.
- Configuration: Use
mo clean --whitelistto manage protected paths,mo purge --pathsto configure scan directories.
mo cleanScanning cache directories...
โ User temp files 12.3GB
โ Browser cache (Chrome, Edge, Firefox) 8.5GB
โ Developer tools (Node.js, npm, Python) 15.2GB
โ Windows logs and temp files 4.1GB
โ App-specific cache (Spotify, Slack, VS Code) 6.8GB
โ Recycle Bin 9.2GB
====================================================================
Space freed: 56.1GB | Free space now: 180.3GB
====================================================================
mo uninstallSelect Apps to Remove
โโโโโโโโโโโโโโโโโโโโโโโโโโโ
โถ โ Adobe Photoshop 2024 (4.2GB) | Old
โ IntelliJ IDEA (2.8GB) | Recent
โ Premiere Pro (3.4GB) | Recent
Uninstalling: Adobe Photoshop 2024
โ Removed application
โ Cleaned 52 related files across 8 locations
- AppData, Caches, Preferences
- Logs, Registry entries
- Extensions, Plugins
====================================================================
Space freed: 4.8GB
====================================================================
mo optimizeSystem: 12/32 GB RAM | 280/460 GB Disk (61%) | Uptime 6d
โ Clear Windows Update cache
โ Reset DNS cache
โ Clean event logs and diagnostic reports
โ Refresh Windows Search index
โ Clear thumbnail cache
โ Optimize startup programs
โ System repairs (Font/Icon/Store/Search)
====================================================================
System optimization completed
====================================================================
mo analyzeAnalyze Disk C:\Users\YourName\Documents | Total: 156.8GB
โถ 1. โโโโโโโโโโโโโโโโโโโ 48.2% | ๐ Downloads 75.4GB >6mo
2. โโโโโโโโโโโโโโโโโโโ 22.1% | ๐ Videos 34.6GB
3. โโโโโโโโโโโโโโโโโโโ 14.3% | ๐ Pictures 22.4GB
4. โโโโโโโโโโโโโโโโโโโ 10.8% | ๐ Documents 16.9GB
5. โโโโโโโโโโโโโโโโโโโ 5.2% | ๐ backup_2023.zip 8.2GB
โโโโ Navigate | O Open | F Show | Del Delete | L Large files | Q Quit
Real-time dashboard with system health score, hardware info, and performance metrics.
mo statusMole Status Health โ 92 Desktop PC ยท Intel i7 ยท 32GB ยท Windows 11
โ CPU โฆ Memory
Total โโโโโโโโโโโโโโโโโโโ 45.2% Used โโโโโโโโโโโโโโโโโโ 58.4%
Load 0.82 / 1.05 / 1.23 (8 cores) Total 18.7 / 32.0 GB
Core 1 โโโโโโโโโโโโโโโโโโโ 78.3% Free โโโโโโโโโโโโโโโโโโ 41.6%
Core 2 โโโโโโโโโโโโโโโโโโโ 62.1% Avail 13.3 GB
โค Disk โก Power
Used โโโโโโโโโโโโโโโโโโโ 67.2% Status AC Power
Free 156.3 GB Temp 58ยฐC
Read โฎโฏโฏโฏโฏ 2.1 MB/s
Write โฎโฎโฎโฏโฏ 18.3 MB/s
โ
Network โถ Processes
Down โฎโฎโฏโฏโฏ 3.2 MB/s Code โฎโฎโฎโฎโฏ 42.1%
Up โฎโฏโฏโฏโฏ 0.8 MB/s Chrome โฎโฎโฎโฏโฏ 28.3%
Health score based on CPU, memory, disk, temperature, and I/O load. Color-coded by range.
Clean old build artifacts (node_modules, target, build, dist, etc.) from your projects to free up disk space.
mo purgeSelect Categories to Clean - 18.5GB (8 selected)
โค โ my-react-app 3.2GB | node_modules
โ old-project 2.8GB | node_modules
โ rust-app 4.1GB | target
โ next-blog 1.9GB | node_modules
โ current-work 856MB | node_modules | Recent
โ django-api 2.3GB | venv
โ vue-dashboard 1.7GB | node_modules
โ backend-service 2.5GB | node_modules
Use with caution: This will permanently delete selected artifacts. Review carefully before confirming. Recent projects โ less than 7 days old โ are marked and unselected by default.
Custom scan paths can be configured with mo purge --paths.
# Install to custom location
.\install.ps1 -InstallDir C:\Tools\Mole -AddToPath
# Create Start Menu shortcut
.\install.ps1 -AddToPath -CreateShortcut
# Optional: Custom install location
.\install.ps1 -InstallDir C:\Tools\Mole -AddToPath.\install.ps1 -UninstallMole stores its configuration in:
- Config:
~\.config\mole\ - Cache:
~\.cache\mole\ - Whitelist:
~\.config\mole\whitelist.txt - Purge paths:
~\.config\mole\purge_paths.txt
mole/ (windows branch)
โโโ mole.ps1 # Main CLI entry point
โโโ install.ps1 # Windows installer
โโโ Makefile # Build automation for Go tools
โโโ go.mod # Go module definition
โโโ go.sum # Go dependencies
โโโ bin/
301: โ โโโ clean.ps1 # Deep cleanup orchestrator
302: โ โโโ uninstall.ps1 # Interactive app uninstaller
303: โ โโโ optimize.ps1 # System optimization
304: โ โโโ purge.ps1 # Project artifact cleanup
305: โ โโโ analyze.ps1 # Disk analyzer wrapper
306: โ โโโ status.ps1 # Status monitor wrapper
โโโ cmd/
โ โโโ analyze/ # Disk analyzer (Go TUI)
โ โ โโโ main.go
โ โโโ status/ # System status (Go TUI)
โ โโโ main.go
โโโ lib/
โโโ core/
โ โโโ base.ps1 # Core definitions and utilities
โ โโโ common.ps1 # Common functions loader
โ โโโ file_ops.ps1 # Safe file operations
โ โโโ log.ps1 # Logging functions
โ โโโ ui.ps1 # Interactive UI components
โโโ clean/
โโโ user.ps1 # User cleanup (temp, downloads, etc.)
โโโ caches.ps1 # Browser and app caches
โโโ dev.ps1 # Developer tool caches
โโโ apps.ps1 # Application leftovers
โโโ system.ps1 # System cleanup (requires admin)
The analyze and status commands require Go to be installed:
# From the repository root
# Build both tools
make build
# Or build individually
go build -o bin/analyze.exe ./cmd/analyze/
go build -o bin/status.exe ./cmd/status/
# The wrapper scripts will auto-build if Go is available- If Mole saved you disk space, consider starring the repo or sharing it with friends.
- Have ideas or fixes? Check our Contributing Guide, then open an issue or PR to help shape Mole's future.
- Love Mole? Buy Tw93 an ice-cold Coke to keep the project alive and kicking! ๐ฅค
-
install.ps1- Windows installer -
mole.ps1- Main CLI entry point -
lib/core/*- Core utility libraries
-
bin/clean.ps1- Deep cleanup orchestrator -
bin/uninstall.ps1- App removal with leftover detection -
bin/optimize.ps1- System optimization -
bin/purge.ps1- Project artifact cleanup -
lib/clean/*- Cleanup modules
-
cmd/analyze/- Disk usage analyzer (Go) -
cmd/status/- Real-time system monitor (Go) -
bin/analyze.ps1- Analyzer wrapper -
bin/status.ps1- Status wrapper
-
tests/- Pester tests - GitHub Actions workflows
-
scripts/build.ps1- Build automation
Mole wouldn't be possible without these amazing contributors. They've built countless features that make Mole what it is today. Go follow them! โค๏ธ
Join thousands of users worldwide who trust Mole to keep their systems clean and optimized.
MIT License โ feel free to enjoy and participate in open source.
