If your WinSxS folder looks too large, do not delete it or anything inside it by hand. WinSxS is the Windows component store, and Windows needs it to run, install updates and repair itself. The folder is also usually much smaller than File Explorer says, because many of its files are hard links shared with other Windows folders. The safe way to shrink it is to check its real size with DISM /Online /Cleanup-Image /AnalyzeComponentStore, then let Windows remove superseded components with Windows Update Cleanup or DISM /Online /Cleanup-Image /StartComponentCleanup.
What the WinSxS folder is
C:\Windows\WinSxS stores the components that make up Windows: system files, drivers, libraries and the different versions of them installed by updates. When Windows installs an update, the new version of a component goes into WinSxS, and the old version is kept for a while so the update can be uninstalled if something goes wrong.
Windows also uses the component store to repair damaged system files and to turn optional features on and off. That is why it must never be deleted, renamed, moved or stripped of permissions. Doing any of those can stop Windows Update working, break features or leave the PC unable to start.
Ignore any guide that tells you to take ownership of WinSxS, delete its subfolders or compress it with NTFS compression. None of these are supported, and the damage is often not obvious until the next update fails.
Why File Explorer exaggerates its size
Many files in WinSxS are hard links: the same physical data appears both in WinSxS and in another Windows folder such as System32. File Explorer counts each name separately, so the same data is counted twice and WinSxS can appear many gigabytes larger than the space it actually uses.
To see the real figure:
- Right-click Start and choose Terminal (Admin), and approve the prompt.
- Run:
DISM /Online /Cleanup-Image /AnalyzeComponentStore - Wait for the analysis to finish. It can take several minutes.
The report includes:
| Line in the report | What it means |
|---|---|
| Windows Explorer Reported Size of Component Store | The inflated figure File Explorer shows |
| Actual Size of Component Store | The real space used, after accounting for hard links |
| Shared with Windows | Files that are also part of Windows itself; not extra space |
| Backups and Disabled Features | Older component versions and optional features kept for later |
| Cache and Temporary Data | Working data used during servicing |
| Number of Reclaimable Packages | Superseded updates cleanup can remove |
| Component Store Cleanup Recommended | Yes or No: whether running cleanup is worthwhile |
If cleanup is not recommended and there are no reclaimable packages, WinSxS is already as small as it reasonably gets, and your space problem is elsewhere.
Method 1: Windows Update Cleanup (easiest)
This is the safest option and needs no commands.
- Open Settings > System > Storage > Temporary files.
- Tick Windows Update Cleanup. Untick categories you do not want, such as Downloads.
- Click Remove files.
Alternatively, open Disk Cleanup, click Clean up system files, tick Windows Update Cleanup and click OK. This step can take a long time on a PC that has not been cleaned before. Let it finish, and restart afterwards, because some of the cleanup completes during the restart.
Method 2: DISM component cleanup
DISM does the same job from the command line and gives you more control.
- Open Terminal (Admin).
- Run:
DISM /Online /Cleanup-Image /StartComponentCleanup - Wait for it to reach 100 percent, then restart.
- Run
/AnalyzeComponentStoreagain to see the new size.
This removes superseded versions of components that are no longer needed. Updates installed recently can still be uninstalled afterwards.
The ResetBase option
Adding /ResetBase (as in DISM /Online /Cleanup-Image /StartComponentCleanup /ResetBase) removes every superseded component version, which usually frees a bit more space. The trade-off is that you can no longer uninstall any update that is already installed. Use it only when you are short of space and Windows is working well, not straight after a new update you might need to roll back.
Windows already does some of this for you
Windows runs a scheduled task called StartComponentCleanup that removes superseded components automatically when the PC is idle, after a grace period following each update. That is one reason WinSxS stays roughly the same size over time instead of growing forever. Running cleanup yourself simply does it sooner.
You can also start that task yourself, so it runs with the same rules Windows uses. In an administrator terminal, run schtasks /Run /TN "\Microsoft\Windows\Servicing\StartComponentCleanup". It works quietly in the background and is a gentler alternative to running DISM by hand, although it can take a while to make a visible difference.
If WinSxS keeps growing a lot despite cleanup, run DISM /Online /Cleanup-Image /RestoreHealth and then sfc /scannow from an administrator terminal. They check the component store for damage, which can stop cleanup working properly.
If WinSxS is not the real problem
On most PCs the actual size of the component store is in the single-digit to low double-digit gigabytes, and cleanup recovers a few gigabytes at most. If your drive is still full, the space is probably somewhere else: restore points, the hibernation file, a Windows.old folder after an upgrade, or your own files.
For the system side, see our guides to deleting the Windows.old folder and limiting System Restore. For your own files, the biggest wins are usually duplicates, huge forgotten files and old downloads.
Drive Sweeper is built for that side of the problem. It clears update leftovers, temporary files and other junk that is safe to remove, and finds duplicates, huge files and old downloads, but it never picks Windows or program files, so WinSxS and the rest of the Windows folder are left alone. Each item is labeled safe, review or keep, and removed files stay in a restore area for 30 days. Use DISM or Windows Update Cleanup for the component store, and Drive Sweeper for everything that is genuinely yours to clear.
Quick summary
- Never delete, move or take ownership of WinSxS.
- Check the real size with
/AnalyzeComponentStore; Explorer's number is inflated. - Shrink it with Windows Update Cleanup or
/StartComponentCleanup, then restart. - Use
/ResetBaseonly if you accept that installed updates can no longer be removed. - Look elsewhere for the bulk of your space. Our list of what you can safely delete from your C drive is a good place to start.
Frequently asked questions
Can I delete the WinSxS folder?
No. WinSxS holds the components Windows needs to run, update and repair itself. Deleting it or files inside it by hand can stop Windows from updating or even starting.
Why does File Explorer say WinSxS is so big?
Many files in WinSxS are hard links to files in other Windows folders. Explorer counts them twice, so the folder looks bigger than the space it really uses.
What does DISM ResetBase do?
It removes superseded versions of every component. It saves extra space but you can no longer uninstall the updates that are already installed, so it is best left for when you really need the room.
