Guide · Windows cleanup

WinSxS folder too large?What to delete and what not to

Open C:\Windows\WinSxS in File Explorer and it can look enormous. The short answer: do not delete files from it by hand. Windows has supported commands that clean the component store safely.

← All guides

What the WinSxS folder is

WinSxS is the Windows component store. It holds the files Windows needs to install, update, repair and roll back system components. Many entries in it are hard links to the same files that live elsewhere in Windows.

Why File Explorer overstates its size

Because of those hard links, the size File Explorer shows can count the same data more than once. The real extra disk space used is usually smaller than the number in the folder properties.

Never delete WinSxS files by hand

Removing files or folders from WinSxS manually, or taking ownership of the folder to do it, can break Windows Update, repair tools and optional features. If you have already done it, run sfc /scannow and DISM /Online /Cleanup-Image /RestoreHealth from an administrator Command Prompt.

Check first: AnalyzeComponentStore

Open Command Prompt as administrator and run: DISM /Online /Cleanup-Image /AnalyzeComponentStore

The report says whether a cleanup is recommended and how much could be reclaimed. If it says no cleanup is recommended, you can stop here.

The supported cleanup: StartComponentCleanup

If a cleanup is recommended, run: DISM /Online /Cleanup-Image /StartComponentCleanup

This removes superseded versions of components. It is the same job Windows does automatically through a scheduled task, just started on demand.

About /ResetBase

The /ResetBase option removes all superseded versions without keeping them, which can save more space but means you can no longer uninstall the updates that are already installed. It is optional and is not needed for normal cleaning, so skip it unless you understand the trade-off.

The graphical way

Disk Cleanup (cleanmgr) → Clean up system files → Windows Update Cleanup does a similar job without a command line. Read our Windows Update Cleanup guide before you use it.

Where Rain Cleaner fits

Rain Cleaner (Windows 10/11, 64-bit) is built around inspection before deletion and does not delete files from WinSxS by hand. The Free version has no ads; Pro has a free 14-day trial (no card).

Want a second opinion before deleting anything?Rain Cleaner shows what it found before cleanup, and you decide what goes. Free version without ads; Pro has a free 14-day trial, no card. Windows 10 / 11, 64-bit.Get Rain Cleaner →  ·  All guides →

Last updated: 2026-10-01

Quick questions

Read next

Download

Try it on your own machine.

Free, no account, no subscription. Windows 10 and 11.