Windows

C: Drive Full? Safely Shrink the WinSxS Folder with DISM

Published June 10, 2026 · by The FixHub Team

The C:\Windows\WinSxS folder (the component store) holds the files Windows needs to add features, uninstall updates, and repair itself. It can grow to many gigabytes, and File Explorer often reports it as far bigger than it really is (many files are hard-linked, counted twice).

The one rule: never delete WinSxS by hand. Removing files from it breaks Windows servicing — you won’t be able to install updates or repair the OS. The supported way to shrink it is DISM.

Step 1: See how big it really is

Admin Command Prompt:

Dism.exe /Online /Cleanup-Image /AnalyzeComponentStore

This reports the actual store size and whether cleanup is recommended. (The Explorer size is misleading; trust this number.)

Step 2: Clean it up

Dism.exe /Online /Cleanup-Image /StartComponentCleanup

This removes superseded versions of components. Run manually like this, previous versions are deleted right away (the scheduled-task version waits 30 days), with no 1-hour time limit.

Step 3 (optional): Reclaim more with /ResetBase

Dism.exe /Online /Cleanup-Image /StartComponentCleanup /ResetBase

/ResetBase removes all superseded versions of every component for extra space. The trade-off: after this, you can’t uninstall any update that’s already installed (no rollback). Only use it on a stable PC you’re sure about.

Disk Cleanup does a lighter version

The Windows Update Cleanup option in Disk Cleanup (cleanmgr) trims the component store too — gentler and click-driven. To run it automatically on a schedule, see Automate Disk Cleanup with /sageset and /sagerun. Also worth doing when the drive is tight: empty every user’s Recycle Bin.

FAQ

WinSxS looks like 10+ GB in Explorer — is that real? Usually not. Many files are hard links shared with C:\Windows, so they’re counted twice. Run AnalyzeComponentStore (Step 1) for the true figure before worrying.

Can I delete WinSxS to free space? No — it will break Windows Update and repair. Use DISM (Steps 2–3) or Disk Cleanup; those are the only safe methods.

Still out of space after cleanup? The component store is rarely the biggest hog. Check temp files and the Recycle Bin via cleanmgr automation, and if the disk is also pegged at 100%, see Windows 11 100% disk usage.

Sources: Microsoft Learn — Clean Up the WinSxS Folder (DISM /StartComponentCleanup, /ResetBase)