Repository navigation
Releases
CrapClean 2.0 — a window, safe paths, preview and logs
CrapClean now opens a window. Tick the categories you want cleaned, press Clean, and it tells you what it did. Nothing is deleted until you press the button.
Built for people who do not want to touch a command line: download the zip, extract, double-click. No install, no settings, no account.
Download
CrapClean-2.0.zip— recommended. Extract it, then runCrapClean.batCrapClean.bat+CrapClean.ps1— the same two files, individually, from the repo
Windows SmartScreen may warn on first run because the script is not code-signed. Click More info → Run anyway. The source is in this repo if you want to read it first — which is the honest reason to keep it visible.
What is new
- Point-and-click window with risk labels (Safe / Moderate / Advanced) on every category
- Select recommended — the safe set only, risky items stay unticked
- Preview only — shows what would be deleted and deletes nothing
- Estimate space — size of each ticked category before you commit
- Confirmation dialog that names every category
- Optional restore point, and a clear message if Windows refuses to make one
- Log file per run in
%LOCALAPPDATA%\CrapClean\logs - Administrator detection: the launcher asks for rights, and tells you which categories were skipped if you decline
- Browser cache cleaning for Chrome, Edge and Firefox
- New categories: Windows.old, Delivery Optimization cache, error reports
- Command-line modes:
-DryRunand-Quick
What is fixed
- Temp folders are emptied, not deleted — 1.0 removed folders Windows expects to exist
- Prefetch is no longer wiped by default — it is now Advanced, off, and says why
deltreelines gone — they did nothing on any modern Windows- Duplicate blocks removed — 1.0 deleted the same temp paths three times
cleanmgr /sagerun:1removed — it silently did nothing without/sagesetfirst- Nothing fails silently — locked files and skipped paths are logged
Requires
Windows 10 or 11 (uses Clear-RecycleBin). Administrator rights recommended, not required.
Safety
Full per-category explanation: docs/SAFETY.md. It never touches documents, Desktop, Downloads, OneDrive, installed programs, bookmarks, passwords, history, the registry or Windows system files.
The original 1.0 is preserved untouched at v1.0 and in legacy/CrapClean-v1.bat.
CrapClean 1.0 — the original batch script
The original CrapClean: one .bat file that clears temp folders, Prefetch, Recent items and runs Disk Cleanup.
This release exists so the first version stays available and unchanged. It is not maintained — use 2.0 instead.
Download
CrapClean-v1.bat— the original file, exactly as first published (911 bytes, byte-for-byte)
Known issues in this version
- Deletes the temp folders, not just their contents (
rd /s/q %TEMP%) — Windows expectsC:\Windows\Tempto exist - Wipes
C:\Windows\Prefetch, which slows program launches for days afterwards - Six lines call
deltree, a command that has not existed since Windows XP, so they do nothing - Deletes the same temp paths three times over
cleanmgr /sagerun:1silently does nothing unless/sagesetwas configured first- No preview, no log, no confirmation, no administrator check
All of the above are fixed in 2.0. See CHANGELOG.md.