A fast, interactive terminal tool for finding and deleting dependency and cache folders. Think of it as a smarter RM -RF NODE_MODULES that works across all your projects.
INTERACTIVE TUI — SEARCH, SORT, MULTI-SELECT, DELETE
Development projects accumulate massive cache folders over time. Node_modules can reach 500MB+ per project. Rust targets exceed 1GB. Cache-sweep finds and safely removes them all.
Built in Rust with async parallel scanning. Finds thousands of folders in seconds.
System directories are protected. No accidental deletions of config files.
Beautiful terminal interface with search, sort, multi-select, and analytics.
Node, Python, Rust, Java, Swift, Unity, Unreal, and more ecosystems.
See space breakdown by folder type. Identify what's eating your disk.
Pipe results to other tools with --json or stream with --json-stream.
brew tap sogoiii/tap
brew install cache-sweep
git clone https://github.com/sogoiii/cache-sweep.git
cd cache-sweep
cargo build --release
./target/release/cache-sweep
cp ./target/release/cache-sweep /usr/local/bin/
cache-sweep
Scan current directory
cache-sweep -f
Scan home directory
cache-sweep -p node
Only Node.js caches
cache-sweep -p python,rust
Multiple profiles
USE cache-sweep -p all TO SCAN EVERYTHING (DEFAULT)