A lightweight CLI tool to clean up development caches and free up disk space. Built with Go, Clearance helps you maintain a clean development environment by removing unnecessary cache files.
- π§Ή Clean npm cache
- π§Ά Clean yarn cache
- π³ Clean Docker cache (optional)
- πͺ Clean Windows WinSxS temp files
- π Safe, selectable cleanup operations
- π¨ Beautiful CLI interface with color support
- β‘ Fast and efficient cleanup operations
- Go 1.21 or higher
- Administrator privileges (required for system folders and Docker commands)
- npm, yarn, and/or Docker in PATH (if using respective cleanup options)
go install github.com/abdorrahmani/clearance@latest- Download the latest release from the Releases page
- Extract the ZIP file
- Run
run-clearance.batorclearance.exedirectly
clearance [--npm] [--yarn] [--docker] [--winsxs] [--all]Simply run:
clearance# Clean npm and yarn caches
clearance --npm --yarn
# Clean everything
clearance --all
# Clean only Docker cache
clearance --docker| Flag | Description |
|---|---|
--npm |
Clean npm cache |
--yarn |
Clean yarn cache |
--docker |
Clean Docker cache |
--winsxs |
Clean WinSxS temp files |
--all |
Clean all caches |
- π Always run with administrator privileges
- π‘οΈ The tool only cleans known-safe locations
- π For WinSxS, only the Temp directory is cleaned
- π³ Docker cleanup uses official Docker commands
git clone https://github.com/abdorrahmani/clearance.git
cd clearance
go build -o clearance.exeContributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'β¨ feat: add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
If you need help or have questions, please visit anophel.com/en/contact-us
Made with β€οΈ by Abdorrahmani