Skip to content

Myth: you can delete files from the huge WinSxS folder to free space — via Microsoft Learn

MythNeeds adminWindows 11Windows 10

WinSxS (the component store) looks huge, and tweak guides suggest deleting from it. Microsoft warns that deleting files from it, or the whole folder, can stop the PC booting and make it impossible to update. Windows already trims it automatically, and there are safe built-in ways to shrink it further.

What to do instead

  1. Easy way: run Disk Cleanup (cleanmgr) → Clean up system files → tick Windows Update Cleanup → OK.
  2. Command way (elevated): Dism.exe /online /Cleanup-Image /StartComponentCleanup removes superseded component versions straight away.
  3. Only if you're sure you'll never need to uninstall the updates you have now: Dism.exe /online /Cleanup-Image /StartComponentCleanup /ResetBase. After this, the updates installed now can't be uninstalled (future updates still can be).
Windows already runs the StartComponentCleanup scheduled task on its own, waiting at least 30 days after an update before removing the old versions. Microsoft strongly recommends not disabling component cleanup.

Sources

Source reviewed
2026-11-02
Link checked
2026-11-02
Tested hands-on
Not by Oddbyte.Me

Oddbyte.Me hasn't tried this on every Windows build, so keep the undo handy.

winsxsdisk spacedismcomponent storecleanupmyth

More in Myths: Skip These