Open source CLI tool to clean your Windows PC - remove junk files, caches, logs, and more
npm install windows-cleaner-cli
Free & Open Source Windows cleanup tool
Scan and remove junk files, caches, logs, and more โ all from your terminal.
bash
npx windows-cleaner-cli
`
That's it! No installation needed. The CLI will:
1. ๐ Scan your PC for cleanable files
2. ๐ Show you what was found with sizes
3. โ
Let you select exactly what to clean
4. ๐๏ธ Clean the selected items safely
๐ฌ See It In Action
`
$ npx windows-cleaner-cli
๐งน Windows Cleaner CLI
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Scanning your PC for cleanable files...
Found 32.5 GB that can be cleaned:
? Select categories to clean (space to toggle, enter to confirm):
โ ๐ข Recycle Bin 2.1 GB (45 items)
โ ๐ข Browser Cache 1.5 GB (4 items)
โ ๐ข Temporary Files 549.2 MB (622 items)
โ ๐ก User Cache Files 12.5 GB (118 items)
โ ๐ก Development Cache 15.9 GB (14 items)
Summary:
Items to delete: 803
Space to free: 32.5 GB
? Proceed with cleaning? (Y/n)
โ Cleaning Complete!
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Recycle Bin โ 2.1 GB freed
Browser Cache โ 1.5 GB freed
Temporary Files โ 549.2 MB freed
User Cache Files โ 12.5 GB freed
Development Cache โ 15.9 GB freed
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ Freed 32.5 GB of disk space!
Cleaned 803 items
`
โจ Features
| Feature | Description |
|---------|-------------|
| ๐ One Command | Just run npx windows-cleaner-cli โ no complex flags |
| ๐ฏ Interactive | Select exactly what you want to clean with checkboxes |
| ๐ก๏ธ Safe by Default | Risky items hidden unless you use --risky |
| ๐ Smart Scanning | Finds caches, logs, dev files, browser data, and more |
| ๐ฑ App Remover | Remove apps and their associated files |
| ๐ง Maintenance | Flush DNS cache, run Disk Cleanup, clear caches |
| ๐ Privacy First | 100% offline โ no data ever leaves your machine |
| ๐ฆ Minimal Dependencies | Only 5 runtime deps, all from trusted maintainers |
๐ฏ What It Cleans
$3
| Category | What it cleans |
|----------|---------------|
| recycle-bin | Files in the Recycle Bin |
| temp-files | Temporary files in TEMP and Windows\Temp |
| browser-cache | Chrome, Edge, Firefox, Brave cache |
| chocolatey | Chocolatey/Scoop package manager cache |
| docker | Unused Docker images, containers, volumes |
$3
| Category | What it cleans |
|----------|---------------|
| system-cache | Application caches in AppData\Local |
| system-logs | System and application logs |
| dev-cache | npm, yarn, pip, NuGet, Gradle cache |
| node-modules | Orphaned node_modules in old projects |
| windows-update | Old Windows Update files |
| prefetch | Windows Prefetch data |
$3
| Category | What it cleans |
|----------|---------------|
| downloads | Downloads older than 30 days |
| itunes-backups | iPhone and iPad backup files from iTunes |
| duplicates | Duplicate files (keeps newest) |
| large-files | Files larger than 500MB |
๐ Usage
$3
`bash
Interactive mode โ scan, select, and clean
npx windows-cleaner-cli
Include risky categories
npx windows-cleaner-cli --risky
`
$3
Remove applications with their preferences, caches, and support files:
`bash
npx windows-cleaner-cli uninstall
`
$3
`bash
Flush DNS cache
npx windows-cleaner-cli maintenance --dns
Run Windows Disk Cleanup
npx windows-cleaner-cli maintenance --disk
Clear thumbnail cache
npx windows-cleaner-cli maintenance --thumbnails
Clear font cache (requires admin)
npx windows-cleaner-cli maintenance --fonts
`
$3
`bash
List all available categories
npx windows-cleaner-cli categories
Manage configuration
npx windows-cleaner-cli config --init
npx windows-cleaner-cli config --show
Manage backups
npx windows-cleaner-cli backup --list
npx windows-cleaner-cli backup --clean
`
๐ป Global Installation
If you use this tool frequently:
`bash
npm install -g windows-cleaner-cli
windows-cleaner-cli
`
๐ Security
| | |
|---|---|
| โ
Open Source | All code publicly available for audit |
| โ
No Network | Operates 100% offline |
| โ
Minimal Deps | Only 5 runtime dependencies |
| โ
CI/CD | Every release tested with TypeScript, ESLint, and automated tests |
| โ
Socket.dev | Dependencies monitored for supply chain attacks |
Found a vulnerability? Report it via GitHub Security Advisories.
๐ ๏ธ Development
`bash
git clone https://github.com/guhcostan/windows-cleaner-cli.git
cd windows-cleaner-cli
npm install
npm run dev # Run in dev mode
npm test # Run tests
npm run lint # Run linter
npm run build # Build for production
`
๐ค Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
1. Fork the repository
2. Create your feature branch (git checkout -b feature/amazing-feature)
3. Commit your changes (git commit -m 'Add some amazing feature')
4. Push to the branch (git push origin feature/amazing-feature`)
โ ๏ธ Disclaimer
This tool deletes files from your system. While we've implemented safety measures, always ensure you have backups of important data.
Made with โค๏ธ for Windows users everywhere