Temporary files are the dust bunnies of Windows: individually tiny, collectively enormous. Every installer extracts to Temp and forgets to clean up. Every update stages gigabytes and leaves the scaffolding behind. Thumbnail caches, shader caches, delivery optimization chunks, error reports — they all accumulate in corners you never look at, until the drive is full and the laptop slows down.
Windows 11 24H2 gives you good tools for this, but they are scattered across Settings, the classic Disk Cleanup, and Task Scheduler. This guide pulls them together: a manual deep clean you can do today, the automated setup that prevents buildup, and the hidden categories that hold the real gigabytes.
Why this happens
- Installers never clean up: Setup programs extract hundreds of megabytes to Temp and leave them when they finish — or crash midway.
- Windows Update staging: Updates download, extract, and install in stages, and the staging files linger until a cleanup pass removes them.
- Rollback data is kept by design: Feature updates keep the entire previous Windows installation for ten days in case you roll back.
- Caches regenerate and bloat: Thumbnail, icon, font, and shader caches grow with use and are never trimmed automatically.
- Delivery Optimization peer cache: Update chunks downloaded for sharing with other PCs sit on disk until cleaned.
- Crash dumps and error reports: Memory dumps from a single blue screen can be gigabytes, and queued error reports pile up silently.
- Per-user Temp folders multiply: Every user account has its own Temp folder, so shared laptops accumulate several copies of the same waste.
How to fix it
Work through these in order — diagnose first, then act.
Fix 1: See exactly what you are carrying
- Go to Settings → System → Storage and wait for the bar to populate, then click Temporary files.
- Windows lists every category with its size — note the biggest three. Windows Update Cleanup and Delivery Optimization Files are usually the giants.
- Check the total at the top. Under 1GB means temp files are not your problem; several gigabytes means this guide will pay off immediately.
- Do not click Remove yet — you will do a more thorough pass with Disk Cleanup in Fix 3.
Fix 2: Clear the Temp folders manually
- Press Win + R, type
%temp%, and press Enter. This opens your user’s Temp folder. - Press Ctrl + A to select all, then Delete. When Windows warns about files in use, check Do this for all current items and click Skip.
- Press Win + R again, type
temp(no percent signs), approve the admin prompt, and repeat the select-all-delete-skip process for the system Temp folder. - Empty the Recycle Bin afterward — deleted temp files sit there holding space until you do. If your disk is still pinned at 100% after cleaning, our 100% disk guide covers the deeper causes.
Fix 3: Run the deep Disk Cleanup pass
- Press Win + R, type
cleanmgr, press Enter, select C:, then click Clean up system files and select C: again. - Check Windows Update Cleanup, Delivery Optimization Files, Device driver packages, Temporary files, Thumbnails, and DirectX Shader Cache.
- Click OK → Delete Files and let it run — the Windows Update Cleanup portion can take 10–20 minutes on its first run in ages.
- Restart the laptop when it finishes so Windows rebuilds the caches it needs at healthy sizes.
Fix 4: Remove Windows.old after feature updates
- Open File Explorer → This PC, right-click C: → Properties → Disk Cleanup → Clean up system files.
- Check Previous Windows installation(s) — this is the Windows.old folder, often 15–25GB.
- Only remove it if you are sure you will not roll back the feature update (you have ten days from the update to decide).
- Never delete Windows.old by hand in File Explorer — permissions will fight you and you will leave fragments behind. Always use Disk Cleanup.
Fix 5: Turn on Storage Sense for ongoing maintenance
- Go to Settings → System → Storage and enable Storage Sense.
- Click into its settings: set it to run Every week, auto-delete Recycle Bin contents older than 30 days, and clean the Downloads folder on a schedule you are comfortable with.
- Enable Delete previous versions of Windows so future Windows.old folders vanish automatically after the rollback window.
- Storage Sense handles the weekly trickle; for the monthly deep categories, set up the automated run described in our scheduled Disk Cleanup guide .
Fix 6: Clear the caches Disk Cleanup misses
- Delivery Optimization: Settings → Windows Update → Advanced options → Delivery Optimization → Clear cache is not a button, so use Disk Cleanup’s Delivery Optimization Files category (Fix 3) — it is the supported path.
- Microsoft Store cache: Press Win + R, type
wsreset.exe, and press Enter. A blank Command Prompt window appears for a minute, then the Store opens — the cache is cleared. - Thumbnail cache rebuild: In Disk Cleanup, checking Thumbnails forces a rebuild at a sane size next time you browse folders.
- Background details on what each category contains are documented on the Microsoft support site if you want to verify before deleting.
Fix 7: Stop the buildup at the source
- Uninstall programs you no longer use (Settings → Apps → Installed apps) — fewer installers means fewer abandoned temp files.
- If a specific program recreates gigabytes of temp data daily (video editors and some games are notorious), check its settings for a custom temp location and point it at a secondary drive.
- Keep at least 15% of C: free — Windows cleans and stages updates far more efficiently with breathing room, and low space itself causes slowdowns.
- Revisit Settings → System → Storage → Temporary files monthly for a 30-second sanity check that automation is keeping up.
Closing
Temp files are not mysterious — they are just neglected. One manual deep clean today, Storage Sense weekly, and Disk Cleanup monthly, and the gigabytes stop accumulating. Your C: drive stays lean, updates install cleanly, and “disk full” becomes a warning you never see again.
