Windows 11 accumulates gigabytes of hidden files over time — old Windows updates, superseded system components, hibernation images, and forgotten user data. Storage Sense handles the obvious cruft, but there’s a deeper layer of space recovery that requires knowing exactly where to look. This guide walks through every meaningful cleanup method, from the safe to the aggressive.
1. Extended Disk Cleanup (System Files)
The built-in Disk Cleanup is more powerful than most people realize — but only if you run it as an administrator.
- Press
Win + R, typecleanmgr, press Enter - Select your C: drive
- Click Clean up system files (requires admin)
- Check everything relevant:
- Windows Update Cleanup — often 5–20 GB of superseded update components
- Windows Upgrade Log Files
- Previous Windows installation(s) — if you upgraded from Windows 10, this alone can be 20+ GB
- Temporary files
- Recycle Bin
- Thumbnails
Windows Update Cleanup is the biggest win here. Windows keeps previous versions of update packages indefinitely in case you need to uninstall them. After your system has been stable for 30+ days, these are safe to delete.
2. DISM — Clean Up the WinSxS Store
The C:\Windows\WinSxS folder is the Windows Component Store — it holds every version of every system component for servicing and rollback. It looks enormous (often 10–30 GB), but much of it is hard-linked and not actually consuming unique disk space.
However, superseded components can be safely removed:
# Analyze the component store (shows reducible size)
Dism /Online /Cleanup-Image /AnalyzeComponentStore
# Perform cleanup of superseded components
Dism /Online /Cleanup-Image /StartComponentCleanup
# Aggressive cleanup (removes rollback for installed updates — point of no return)
Dism /Online /Cleanup-Image /StartComponentCleanup /ResetBase
/ResetBase frees the most space but removes the ability to uninstall recent updates. Only run this on a stable system you’re confident in. Expect to recover 3–8 GB.
3. Shrink or Disable the Hibernation File
The hibernation file (hiberfil.sys) is hidden at the root of C: and is typically 75% of your total RAM. On a 32 GB system, that’s 24 GB.
Option A: Reduce hibernation file size (keeps Sleep working, frees partial space):
powercfg /hibernate /size 40
This reduces the hibernation file to 40% of RAM size — sufficient for “Fast Startup” while saving space.
Option B: Disable hibernation entirely (frees full hiberfil.sys):
powercfg /hibernate off
This deletes hiberfil.sys and disables Fast Startup. Sleep (S3 suspend) still works. Recommended for desktop PCs or laptops that are always near a power outlet.
4. Clear the Software Distribution Folder
Windows stores downloaded update files in C:\Windows\SoftwareDistribution\Download. After updates install, these files are no longer needed but remain on disk.
Stop Windows Update service first, then clear the folder:
Stop-Service wuauserv, bits
Remove-Item C:\Windows\SoftwareDistribution\Download\* -Recurse -Force
Start-Service wuauserv, bits
This can free 1–10 GB. Windows will re-download update metadata on next check — that’s normal.
5. Clear Delivery Optimization Cache
Windows Update Delivery Optimization (WUDO) caches update files to share with other PCs on your network. The cache can grow to several gigabytes:
Settings → Windows Update → Advanced Options → Delivery Optimization → Activity Monitor → Delete cache
Or via PowerShell:
Delete-DeliveryOptimizationCache
6. Remove Unused Windows Features
Optional Windows features you’ve enabled but never use take up space. Go to:
Settings → Apps → Optional Features
Common space wasters:
- Internet Explorer Mode (not needed if you use modern Edge)
- Windows Media Player Legacy
- Various printer drivers for printers you don’t own
- Handwriting tools for regions you don’t use
Additionally, in Turn Windows features on or off (search in Start), disable:
- Work Folders Client (unless your organization uses this)
- Windows PowerShell 2.0 (deprecated; PowerShell 7 is available as a separate install)
- Internet Printing Client (unless you print to network printers)
7. Delete Old System Restore Points
System Restore can consume gigabytes over time. Keep your most recent restore point and delete the rest:
vssadmin delete shadows /for=C: /oldest
Or to delete all shadow copies except the most recent:
vssadmin delete shadows /for=C: /all
Then reconfigure the maximum storage allocated to System Restore via systempropertiesprotection.exe → Configure → set to 5–10 GB max.
8. Clean Up User Profile Clutter
Several user-specific locations accumulate large amounts of junk:
# Clear user temp folder
Remove-Item $env:TEMP\* -Recurse -Force -ErrorAction SilentlyContinue
# Clear Windows temp
Remove-Item C:\Windows\Temp\* -Recurse -Force -ErrorAction SilentlyContinue
# Clear browser caches (example: Chrome)
Remove-Item "$env:LOCALAPPDATA\Google\Chrome\User Data\Default\Cache\*" -Recurse -Force -ErrorAction SilentlyContinue
Also check:
%LOCALAPPDATA%\Microsoft\Windows\INetCache— Internet Explorer/Edge cache%APPDATA%\Microsoft\Teams\Cache— Teams cache can reach 5+ GB%LOCALAPPDATA%\Discord\Cache— Discord cache%LOCALAPPDATA%\Spotify\Data— Spotify offline cache
9. Compress Old Files with Compact
For files you rarely access but want to keep, Windows NTFS compression saves 30–60% space at a small CPU cost during access:
compact /c /s:"C:\Archive\OldProjects"
This is transparent — files look normal but are compressed on disk. Decompression is automatic on access. Not recommended for your active working directory or game installations (impacts loading).
10. WinDirStat or TreeSize for Space Analysis
Before and after cleanup, use WinDirStat or TreeSize Free to visualize exactly where your disk space is going:
- WinDirStat — free, color-coded treemap, shows every file’s contribution
- TreeSize Free — clean UI, sorts by size, integrates with Explorer context menu
Both are available on ninite.com for easy installation. Target folders over 1 GB that you didn’t knowingly put there.
Quick Summary Table
| Action | Typical Space Recovered |
|---|---|
| Windows Update Cleanup (Disk Cleanup) | 5–20 GB |
| DISM /ResetBase | 3–8 GB |
| Disable Hibernation | Equal to 75% of RAM |
| SoftwareDistribution flush | 1–10 GB |
| User temp and browser cache | 1–5 GB |
| Previous Windows installation | 10–25 GB |
Run through this list on a system that’s been in use for over a year and it’s common to recover 30–50 GB or more.