Independent information resource. Not affiliated with Uderzo Software.Official download source
  1. Home
  2. Guides
  3. WinSxS

How to Check and Manage WinSxS Folder Size

WinSxS is the Windows component store. Explorer often overstates its size because of hard links. Check it with DISM, and clean it only with the component-cleanup tools Microsoft documents. Do not delete the folder.

Updated 2026-11-304 min readIndependent guide

WinSxS, at C:\Windows\WinSxS, is the Windows component store. Windows keeps components there so it can install updates, turn features on, and recover from servicing changes. A disk map that draws the folder as a huge block is showing a real directory. The size File Explorer prints beside it is a poor measure of the unique space the store occupies, because many of those files are hard-linked elsewhere in Windows.

Why the folder looks larger than the space it uniquely uses

Diagram of one component file referenced by a WinSxS link and a Windows link, illustrating why adding both paths over-counts bytes.
Hard links can make one set of bytes appear in more than one folder total.

Many files in the component store are hard-linked to copies elsewhere in Windows. Explorer walks the links it sees and can add the same bytes more than once. Microsoft tells administrators to measure the store with DISM instead of trusting that Explorer total. A treemap is still a useful clue that the store is large. It is not the accounting tool for this folder.

Check the component store with DISM

Open Terminal or Command Prompt as administrator and run:

Dism.exe /Online /Cleanup-Image /AnalyzeComponentStore

The report describes the component store, including how Windows classifies the size, rather than repeating Explorer’s inflated folder total. Read it before you change anything. The command analyzes. It does not itself remove superseded components. Microsoft documents the companion explanation under “Determine the actual size of the WinSxS folder.”

If DISM will not run, the usual reasons are that the window is not elevated or that servicing on the PC is already broken. Fixing a broken servicing stack is a support task. Deleting WinSxS is not the workaround.

Microsoft’s article on the actual size of the folder describes a report that separates three ideas: the size Explorer shows, the actual size of the component store, and the part of that store that is shared with the rest of Windows. The same report can list backups and disabled features, cache and temporary data, the date of the last cleanup, how many packages are reclaimable, and whether Windows recommends cleanup. Read those lines on your machine. A number published for someone else’s PC is not a target for yours.

If the report says cleanup is not recommended, running the cleanup commands anyway may change little. If it says cleanup is recommended, /StartComponentCleanup is the supported next step. Either way, compare free space on C: before and after, using the disk-space check, so you can see whether the volume actually changed.

Supported ways to reduce it

Microsoft’s cleanup document for Windows 10 and later lists three families of maintenance. Windows also runs its own cleanup over time. The same document says Microsoft strongly recommends not disabling component cleanup.

StartComponentCleanup task

Task Scheduler can run \Microsoft\Windows\Servicing\StartComponentCleanup. When Windows runs that task on its own, it waits at least 30 days after an updated component is installed before removing the previous version. If you start the task yourself, Microsoft notes a one-hour timeout, so one run may not finish everything. You can also start it with:

schtasks.exe /Run /TN "\Microsoft\Windows\Servicing\StartComponentCleanup"

DISM StartComponentCleanup

From an elevated command prompt:

Dism.exe /Online /Cleanup-Image /StartComponentCleanup

Microsoft says this is similar to the scheduled task, except previous versions of updated components are removed without the 30-day wait, and the one-hour timeout does not apply. You lose the ability to roll back those superseded versions. You are not deleting the component store.

ResetBase, only if you accept the consequence

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

Microsoft warns that after /ResetBase, existing update packages cannot be uninstalled. Future updates can still be removed according to their own rules. Skip this switch if you still want to uninstall the updates already on the PC.

Disk Cleanup’s Windows Update Cleanup option is the graphical cousin of component cleanup. Microsoft points to it as another way to reduce the store. The /SPSuperseded switch in older documentation applies to service-pack uninstall data. Do not run switches you do not need.

What Microsoft says not to do

Deleting files from WinSxS, or deleting the folder, may severely damage Windows so the PC might not boot and might not update. There is no manual-delete procedure in the official cleanup article.

Taking ownership of WinSxS and emptying it is a common forum suggestion and a direct contradiction of that warning. A SpaceSniffer zoom into the folder does not create an exception. Tags and filters do not make a component file disposable.

What cleanup will not do

Component cleanup removes superseded pieces and can compress what remains. It will not shrink WinSxS to the size of an empty folder, because Windows still needs the current components. If the volume is full because of videos, games, or Windows.old, clean those with their own supported steps. The full drive guide keeps the causes separate. Installer cache files are yet another folder, covered in the Installer guide, and DISM does not replace that guidance.

Questions about WinSxS

How do I reduce WinSxS folder size?

Run DISM /AnalyzeComponentStore first. Then use /StartComponentCleanup if you want the supported cleanup. Add /ResetBase only if you accept that current updates cannot be uninstalled.

Why is WinSxS so large in File Explorer?

Explorer counts hard-linked files in a way that overstates unique disk use. DISM’s component-store analysis is the measurement Microsoft provides for this folder.

Can I delete the WinSxS folder?

No. Microsoft warns that deleting it can prevent Windows from booting or updating.

Does Storage Sense replace DISM for WinSxS?

Storage Sense handles everyday categories such as temporary files. Component-store maintenance is the DISM and servicing-task process, with Disk Cleanup’s update cleanup as the related graphical option.

Sources