Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

windows-cleaner-cli

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

windows-cleaner-cli

Open source CLI tool to clean your Windows PC - remove junk files, caches, logs, and more

latest
Source
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source

🧹 Windows Cleaner CLI

Free & Open Source Windows cleanup tool

Scan and remove junk files, caches, logs, and more — all from your terminal.

npm version npm downloads CI License: MIT

Node.js Version Platform: Windows TypeScript Socket Badge

GitHub Stars

Support on Ko-fi

⚡ Quick Start

npx windows-cleaner-cli

That's it! No installation needed. The CLI will:

  • 🔍 Scan your PC for cleanable files
  • 📋 Show you what was found with sizes
  • Let you select exactly what to clean
  • 🗑️ 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

FeatureDescription
🚀 One CommandJust run npx windows-cleaner-cli — no complex flags
🎯 InteractiveSelect exactly what you want to clean with checkboxes
🛡️ Safe by DefaultRisky items hidden unless you use --risky
🔍 Smart ScanningFinds caches, logs, dev files, browser data, and more
📱 App RemoverRemove apps and their associated files
🔧 MaintenanceFlush DNS cache, run Disk Cleanup, clear caches
🔒 Privacy First100% offline — no data ever leaves your machine
📦 Minimal DependenciesOnly 5 runtime deps, all from trusted maintainers

🎯 What It Cleans

🟢 Safe (always safe to delete)

CategoryWhat it cleans
recycle-binFiles in the Recycle Bin
temp-filesTemporary files in TEMP and Windows\Temp
browser-cacheChrome, Edge, Firefox, Brave cache
chocolateyChocolatey/Scoop package manager cache
dockerUnused Docker images, containers, volumes

🟡 Moderate (generally safe)

CategoryWhat it cleans
system-cacheApplication caches in AppData\Local
system-logsSystem and application logs
dev-cachenpm, yarn, pip, NuGet, Gradle cache
node-modulesOrphaned node_modules in old projects
windows-updateOld Windows Update files
prefetchWindows Prefetch data

🔴 Risky (use --risky flag)

CategoryWhat it cleans
downloadsDownloads older than 30 days
itunes-backupsiPhone and iPad backup files from iTunes
duplicatesDuplicate files (keeps newest)
large-filesFiles larger than 500MB

📖 Usage

Basic Usage

# Interactive mode — scan, select, and clean
npx windows-cleaner-cli

# Include risky categories
npx windows-cleaner-cli --risky

Remove Apps

Remove applications with their preferences, caches, and support files:

npx windows-cleaner-cli uninstall

Maintenance Tasks

# 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

Other Commands

# 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:

npm install -g windows-cleaner-cli
windows-cleaner-cli

🔒 Security

Open SourceAll code publicly available for audit
No NetworkOperates 100% offline
Minimal DepsOnly 5 runtime dependencies
CI/CDEvery release tested with TypeScript, ESLint, and automated tests
Socket.devDependencies monitored for supply chain attacks

Found a vulnerability? Report it via GitHub Security Advisories.

🛠️ Development

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.

  • Fork the repository
  • Create your feature branch (git checkout -b feature/amazing-feature)
  • Commit your changes (git commit -m 'Add some amazing feature')
  • Push to the branch (git push origin feature/amazing-feature)
  • Open a Pull Request

💚 Support

If this tool saved you time or disk space, consider supporting the project!

Support on Ko-fi

Your support helps maintain and improve this tool. Thank you! 🙏

📄 License

MIT License — see LICENSE for details.

⚠️ 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

Keywords

windows

FAQs

Package last updated on 05 Dec 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts