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.bat
orclearance.exe
directly
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.exe
Contributions 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