My C: drive hit 96% full last week. What tipped it over wasn't photos or games, it was dev leftovers: .gradle, node_modules, .next, .turbo, %TEMP%, plus a Docker disk image that had quietly grown to 51 GB. TempSweep clears the first five; the Docker image I compacted myself.
Windows Disk Cleanup clears %TEMP% and the Recycle Bin, but it has no idea what the rest are.
About the title: it says "I wrote", and that isn't accurate. This is vibecoded, an AI coding agent wrote most of the code, I directed the work and reviewed it. Reddit titles can't be edited after posting, so the correction goes here instead of buried at the bottom.
TempSweep is one portable exe, no installer, no Electron.
What it does
- 14 toggleable targets: temp dirs, npm/pnpm/uv stores, browser caches, crash dumps, recycle bin,
.next, .turbo, node_modules - Scans in parallel with
jwalk, deletes in parallel with rayon - Scan of all 13 targets on a ~300 GB tree: 219 ms. An actual delete runs about 2s, those are different operations, and I was sloppy about that in the first version of this post
- Per-row "clean just this one" button, plus a dry-run mode
The part I spent most time on: making sure it can't delete your project
- It never traverses junctions or symlinks, and refuses a target that is one. A link inside
%TEMP% pointing back into a repo is exactly how a robocopy purge without /xj emptied four of my own repos, that's the specific failure this is built against - Refuses drive roots,
C:\Windows, Program Files, ProgramData, anything inside .git, and Documents / Desktop / Downloads / OneDrive - A folder named
node_modules is only deleted if its parent has a package.json and it contains a lockfile or .pnpm - 11 tests, including one that creates a real junction to a "victim" project and asserts it survives a clean
Build output (app/build, dist) is deliberately left alone, clearing it only costs you another full compile. Emulator AVDs and the Android SDK aren't touched either; deleting an AVD costs you the installed apps and login state, which isn't cache cleanup. Docker and WSL disk images aren't touched either, a .vhdx needs diskpart compaction, not file deletion.
How much it frees depends on the machine: a fresh install may find almost nothing, a machine that has run Android and Node builds for a year can find tens of GB.
MIT, no telemetry, no account.
https://github.com/saleheen-dev/TempSweep
Happy to hear which cache paths I'm missing.