
Website · Docs · AI Guide · npm · GitHub · Changelog · Contributing · Support
📦 Available on \
[!IMPORTANT]
This tool deletes files. Most of what it removes are caches that rebuild themselves; personal files it
lists go to the Recycle Bin; emptying the Recycle Bin and clearing event logs have no undo. Those two sit
behind --i-understand-deep, along with the hibernation
file and disk-image compaction. Start with npx windowsweep --scan, which deletes nothing, then
npx windowsweep --dry-run --all --yes, which shows exactly what a real run would remove.
Removing a program or Store app you select in section 26 is permanent too.
Windows only - npm refuses to install it elsewhere.
What it reclaims is the disk space that quietly disappears on a Windows machine: package-manager and build caches,
browser and app caches, Windows temp and update leftovers, stale node_modules, half-finished downloads.
It names every path before it touches one, keeps the caches you used in the last 100 days, never follows a
junction, and its cleanup never touches the network: only sections 30-32, for the rows you pick, ask Windows
Update or winget to download. One question on the first run decides whether your developer caches
are pruned on the idle gate or cleared completely. A PowerShell engine sits behind a thin Node launcher, so npx windowsweep runs it with nothing to install.
It is the Windows member of a family with linux-cleanup and
macleanup.
|
|
| Version |
1.5.1 |
| License |
MIT |
| Node |
>=14 (launcher only) |
| Runtime |
Windows PowerShell 5.1 (built in) or PowerShell 7 |
| Platforms |
Windows 10 (1809+) and Windows 11 |
| Install size |
~201 kB packed · ~676 kB unpacked · 61 files · no dependencies |
| Undo |
Recycle Bin for personal files; none for caches (they regenerate) |
| Status |
Stable · 1.5.0, released 2026-11-14 |
🧭 Table of Contents \
- 📦 Available on
- 💡 Why windowsweep
- ✨ Features
- 📱 Platform Support
- 📋 Requirements
- 📦 Installation
- 🚀 Quick Start
- 🛠️ Usage
- ⚙️ Configuration
- 💻 Command Line
- 🧪 Examples
- 🎛️ Advanced Features
- 🖥️ Desktop app
- 🚑 Recovery & Troubleshooting
- 🚧 Limitations
- ❓ FAQ
- 📚 Documentation
- 🔄 Changelog
- 🤝 Contributing
- 🗂️ Repository
- 💬 Support
- 📄 License
- 👤 Author
- 🔗 Links
- 🏷️ Keywords
💡 Why windowsweep \
A Windows machine that is also a development machine fills up in places Disk Cleanup has never heard of: the
Yarn and npm caches, Gradle, Cypress and Playwright browsers, Android emulator images, Docker's virtual disk,
node_modules for a project you finished in spring, editor caches, two hundred profiles' worth of Chrome cache.
Clearing them by hand means keeping a private list of paths and remembering which ones bite back.
A cleaner that clears every cache it finds trades one problem for another: the next yarn install downloads
the lot again, and your afternoon is gone. windowsweep takes the narrower path.
|
windowsweep |
Windows Disk Cleanup / Storage Sense |
A wipe-everything cleaner |
| Knows developer caches |
yarn, npm, pnpm, Gradle, Cypress, Playwright, AVDs, Docker, editors |
no |
some |
| Default action |
prune files idle 100+ days; keep the newest version of every tool |
fixed categories |
wipe the whole cache |
| Personal folders |
Downloads and folders you add are scanned for large or old files; only chosen files go to the Recycle Bin |
out of scope |
usually configurable |
| Junctions and symlinks |
never followed |
n/a |
varies |
| Dry-run |
every section, exact estimate |
no |
sometimes |
| Unattended use |
--all --yes, Scheduled Task |
Storage Sense |
GUI-first |
| Network calls |
none of its own; sections 30-32 hand the rows you pick to Windows Update or winget |
Microsoft telemetry |
varies |
Nothing here can promise a number. How much comes back depends on your disk; --scan measures it.
Not the right tool when you want a set-and-forget cleaner that runs itself; when you are on Linux or macOS (use
the siblings); when you want an undo for caches (there is none - they regenerate); or when you are looking for a
security scanner or a registry cleaner (it removes registry entries only for programs already gone, and only the
rows you pick). The rest of what it cannot do is under Limitations. It reclaims disk space and
installs the updates you pick, nothing else.
✨ Features \
- Developer mode - one question on the first run. Yes keeps package, build and test-runner caches used in
the last 100 days and the newest version of every versioned tool; no clears them completely.
- 26 numbered sections - from package-manager caches to Windows Update leftovers, plus three read-only
audits (global packages, idle programs, startup items) that report and delete nothing. Orphaned application
data is a fourth 1.1.0 section and is not an audit: it asks you to pick, row by row, and what you pick
goes to the Recycle Bin. Three 1.5.0 sections, 30-32, install the Windows, driver and app updates you
pick. Every section names its paths before it acts, and the numbers are a public contract.
- One deletion chokepoint - refuses drive roots, Windows, Program Files, your profile root, personal folders,
- credentials, toolchains and browser or editor state; asserts every deletion sits inside its declared target; never
- follows a junction or symlink; handles paths beyond 260 characters; skips files another program has open. Self-test
- check [6] walks every directory and file target and fails if one resolves inside a protected path.
- A dry-run that writes nothing -
--dry-run short-circuits every deletion and every destructive command
and reports an exact estimate. --scan and --list-targets are read-only.
- Personal files go to the Recycle Bin - partial downloads and large or old files are listed, you pick, and
Windows keeps the undo.
- Batch policy -
--all runs the safe batch only; deep sections need --i-understand-deep; personal
sections never run unattended.
- Admin awareness - sections that need Administrator rights skip with the exact command when the console
is not elevated;
--elevate relaunches through a UAC prompt.
- Running-app guard - an open browser, editor or app keeps its caches; the tool tells you which to close.
- Session reports - schema-versioned JSON, exportable to Markdown or a self-contained HTML page, plus
--json for scripts.
- Self-test - 256 checks prove the guards on your machine with a real junction, a path longer than 260 characters and
a dry-run fixture before you trust it.
- Sends nothing - cleanup never touches the network, and the engine's own code holds no network call: no
telemetry, no update check of its own. Self-test check [9] fails the build on an HTTP or socket call in the
source. Only sections 30-32, for the rows you pick, ask Windows Update or winget to download. Crash bundles
stay on disk.
📱 Platform Support \
| Platform |
Supported |
Notes |
| Windows 11 |
✅ |
Same engine and PowerShell hosts; a real run on Windows 11 is on the verification list (project status) |
| Windows 10 (1809 and later) |
✅ |
The primary development target; every real run so far |
| Windows Server 2019+ |
⚠️ |
Uses nothing newer than 1809; no real cleanup has been verified on Server |
| Linux |
❌ |
os: ["win32"] makes npm refuse to install; use linux-cleanup |
| macOS |
❌ |
Use macleanup |
📋 Requirements \
| Requirement |
Version |
Why |
| Windows PowerShell |
5.1 |
Ships with Windows 10 and 11; the engine is written for it. PowerShell 7 also works (--pwsh) |
| Node.js |
>=14 |
Only for npx and npm install -g. The .cmd launcher and windowsweep.ps1 need no Node |
| Administrator rights |
optional |
Sections 12-16, 20, 27 and 29; installing in 30 and 31; a program installed for all users in 26 |
docker |
optional |
Section 5 only |
winget |
optional |
Section 32; section 24 also reads winget list |
windowsweep --self-test reports which optional tools are missing on your machine.
📦 Installation \
No install needed:
npx windowsweep --scan
To keep it on your PATH:
npm install -g windowsweep
Or clone the repository and run it without Node:
git clone https://github.com/aoneahsan/windowsweep.git
cd windowsweep
.\windowsweep.cmd --self-test
Both launchers start PowerShell with -ExecutionPolicy Bypass, so the machine's script policy never blocks a
run. Logs and reports land in %USERPROFILE%\.windowsweep\ on every path - outside the npm cache, so history
survives npx evictions. Full detail:
Installation.
🚀 Quick Start \
Prove the guards, look, rehearse, then reclaim:
npx windowsweep --self-test
npx windowsweep --scan
npx windowsweep --dry-run --all --yes
npx windowsweep
The last command is the guided walkthrough: it asks the developer question, shows a pre-scan, then visits each
section with a run / s skip / q quit and a running total.
🛠️ Usage \
The sections
This table describes version 1.5.0.
Tier says what happens to the data: report deletes nothing, rebuilds comes back on its own, slow
comes back but costs minutes, Recycle Bin is recoverable until you empty it (--list shows this tier as
recycle), permanent is not, config changes a setting, update installs what Windows Update or winget
downloads for the rows you pick.