WinSxS Folder in Windows 11: Why It’s So Big and Why You Can’t Just Delete It

Flat 3D illustration of translucent glass crates on navy shelving linked by glowing blue lines, with a padlock on a glass vault and a stylised drive beside it, on a dark navy background.

If you have ever opened C:\Windows and found the WinSxS folder using what looks like 10 GB or more, you are not alone. The WinSxS folder is Windows' component store, and it is the most misunderstood folder on the C: drive. This guide explains what it holds, why File Explorer overstates its size, how to read its real size, which clean-up routes are safe and why you should never delete it by hand. It covers Windows 11, with notes on Windows 10 where it differs.

Last reviewed: November 22, 2026. Steps and wording were compared with Microsoft Learn and Microsoft Support; nothing was run on a real PC.

Quick answer

  • WinSxS is the component store. Windows uses it to install, repair and roll back updates and features. It is not a junk folder.
  • File Explorer counts hard-linked files more than once, so the size it shows is larger than the space the folder really uses.
  • Microsoft says not to delete the WinSxS folder. Deleting files in it can stop the PC booting and make it impossible to update.
  • To read the real size, run the DISM analysis command. To shrink it safely, use Settings, Disk Cleanup or the Microsoft DISM clean-up command.
  • Do not use /ResetBase, ownership changes, or third-party WinSxS cleaners as routine maintenance.

In this guide

What the WinSxS folder is

WinSxS stands for Windows side by side. It sits at C:\Windows\WinSxS and holds the component store: the Windows system files and their earlier versions that Windows needs to install updates, add or remove optional features, repair itself and roll updates back.

Microsoft's documentation describes it in those terms and says plainly that you should not delete the folder. Instead you can reduce its size with tools built into Windows. The same page says Windows also reduces the folder automatically using similar methods, and keeps previous versions of some components for a period of time so you can roll back if necessary.

Why it is not junk

Many files in WinSxS are the working copies of Windows itself. Other folders, such as System32, contain links to them. If you remove the wrong file, a Windows component can stop working, and the repair tools need the same store to fix it. Our SFC and DISM repair guide relies on it.

Why it looks so big

Two things make the folder look worse than it is.

  1. Hard links. Microsoft explains that a file can appear to be stored in more than one place, but there is usually only one copy and the rest are hard links.
  2. How File Explorer counts. Microsoft says File Explorer determines directory size without taking into account that the contained files might be hard linked. So a file that is linked from several folders is added up several times.

A simple picture

Imagine one book on a shelf with three index cards pointing to it. File Explorer counts the book three times. The shelf is not that full, but the total looks huge.

The rest of the folder is genuine overhead: backups kept for rollback, features that are turned off but can be turned on again, and a servicing cache. Those are the parts clean-up can sometimes reduce.

How to read its real size

You can ask Windows for the actual size with Microsoft's DISM tool. This command only reads information. It changes nothing.

  1. Right-click Start and choose Terminal (Admin) or Windows PowerShell (Admin). Accept the permission prompt.

    You should see a window with a prompt. If the window title does not say Administrator, close it and try again, because DISM needs elevated rights.

  2. Type or paste the command below and press Enter.
DISM /Online /Cleanup-Image /AnalyzeComponentStore

You should see a short report. Microsoft's page on the actual size defines each line:

Line in the reportWhat it means
Windows Explorer Reported Size of Component StoreThe size File Explorer would show. It does not allow for hard links.
Actual Size of Component StoreThe real size, with hard links counted once.
Shared with WindowsHard-linked files Windows uses in normal operation. Not overhead.
Backups and Disabled FeaturesKept for rollback and for turning features on. Counts as overhead.
Cache and Temporary DataInternal servicing cache. Counts as overhead.
Date of Last CleanupWhen component clean-up last ran.
Number of Reclaimable PackagesSuperseded packages a clean-up could remove.
Component Store Cleanup RecommendedYes if cleaning could reduce the overhead, No if there is little to gain.

How to read your result

Recommended: No

  • There is little to gain. Stop here, and do not hunt for more space in this folder.

Recommended: Yes

  • Clean-up may reduce the overhead. Use one of the safe routes below.
  • The gain is the overhead lines, not the whole folder.

In Microsoft's own example, a store that File Explorer reported at about 5 GB had an actual size just under that, and roughly half a gigabyte of it was overhead. Your numbers will differ, but the lesson is the same: the part you can reclaim is usually a fraction of what File Explorer shows.

Windows already cleans it

You do not need to run anything for this folder to be maintained. Microsoft describes a scheduled task, StartComponentCleanup, that cleans up components when the system is not in use. When it runs automatically it waits at least 30 days after an updated component is installed before removing the previous versions. If you start the task yourself, it has a one-hour timeout and may not clean everything.

That wait is why a PC that has just had several updates carries more overhead, and why clean-up often gains little right after an update. It is also the reason you may see no change if you clean too soon. For the update-specific side of this, see our guide to Windows Update Cleanup.

The safe ways to shrink it

Use these in order, from gentlest to most thorough. Stop when you have the space you need.

  1. Analyse first Run the AnalyzeComponentStore command and read the overhead lines.
  2. Settings or Disk Cleanup Tick Windows Update Cleanup where it is offered.
  3. DISM StartComponentCleanup Run Microsoft's command for an immediate clean-up.
  4. Restart and re-measure Compare free space and run the analysis again.

Should I clean it at all?

Use this short tree before you choose a route. It is general guidance based on Microsoft's own report lines.

  • Does the analysis say Component Store Cleanup Recommended: No?
    • Yes: stop. There is little to gain, so leave the folder alone.
    • No (it says Yes): go to the next question.
  • Is the PC stable, and are your files backed up?
    • No: fix the instability first, and back up before any clean-up. Cleaning can remove the option to roll updates back.
    • Yes: go to the next question.
  • Did the last Windows update install less than a month ago?
    • Yes: Windows will clean it by itself after its 30-day wait. Waiting costs nothing.
    • No: use Route 1 or Route 2, then re-measure. Use Route 3 only if you still need the space.

Route 1: Settings

Open Settings > System > Storage and select Temporary files (or Cleanup recommendations). Windows lists what it can remove. Microsoft's free-up-space page documents Cleanup recommendations on Windows 11. Whether an update-clean-up item appears there depends on your build, so we cannot promise it will.

Route 2: Disk Cleanup

Search for Disk Cleanup, choose C:, then select Clean up system files. Microsoft's WinSxS page says the Disk Cleanup option to clean up updates helps reduce the size of the component store. Tick it, select OK, and let it finish. Our Disk Cleanup walkthrough explains every checkbox.

What you give up

Cleaning old update components can reduce your ability to roll those updates back. If the PC has been unstable since a recent update, fix that first. See how to uninstall a Windows update, and back up your files if you are unsure.

Route 3: the Microsoft DISM command

This is the command-line version of the same clean-up. Microsoft says using it on a running Windows 10 or later gives results similar to the scheduled task, except previous versions of updated components are deleted immediately, without the 30-day grace period, and without the one-hour limit.

  1. Open an elevated Terminal as above.
  2. Run the command below.
DISM /Online /Cleanup-Image /StartComponentCleanup

You should see a progress bar and a message that the operation completed successfully. Because the 30-day wait is skipped, run it only when the PC is stable and your files are backed up. If it fails, go to the section on stuck clean-ups below. If DISM reports error 0x800f081f or error 87, see our guide to DISM source files not found.

Why /ResetBase is not routine

You will find websites that add a ResetBase switch to the command above. Microsoft says that, used together with StartComponentCleanup on Windows 10 or later, it removes all superseded versions of every component in the component store, and that all existing update packages can't be uninstalled after the command completes, although this won't block the uninstallation of future updates.

Treat ResetBase as a one-way door

It trades your rollback safety net for extra space. It suits a prepared image or a PC you will not need to roll back. It is not a way to tidy a home PC, and we do not give it as a copy-and-paste command in this guide. If you are tempted, first measure with the analysis command to see whether the gain justifies it.

What never to do

  • Do not delete the WinSxS folder or files in it. Microsoft warns that doing so can severely damage the system, so the PC may not boot and updates become impossible.
  • Do not take ownership or change permissions (takeown, icacls) to delete things inside it. That is our general safety advice; no Microsoft page recommends it.
  • Do not use third-party WinSxS cleaners or scripts that promise to delete subfolders.
  • Do not disable component clean-up. It is how Windows keeps the folder in check.
  • Do not delete the Installer or SoftwareDistribution folders to save space. They are Windows folders; failed updates are a separate repair job covered in fixing Windows Update when it is stuck or failing.
  • Do not run /ResetBase as routine maintenance.

For other folders on this list, see what is safe to clean in AppData and ProgramData.

When clean-up recovers nothing

It is common to run a clean-up and see free space barely move. That is usually normal, not a failure. Work through these checks.

  1. Read the analysis. If Component Store Cleanup Recommended says No, there is nothing worth reclaiming.

    You should see a low overhead figure. If so, stop.

  2. Consider timing. Updates installed in the last month may still be inside the 30-day wait. The DISM StartComponentCleanup command skips that wait, but you give up rollback for those updates.
  3. Restart and measure again. Some clean-up finishes during a restart. Compare free space in File Explorer, not the WinSxS folder size.
  4. Look elsewhere. The space may be in another folder. See what fills the C: drive, and why Disk Cleanup sometimes frees no space.

Do not judge by the folder size

Because File Explorer counts hard links several times, the WinSxS size may hardly change even when real overhead was removed. Judge success by free space on the drive and by the analysis report.

When clean-up gets stuck or fails

Component clean-up can take a long time, especially the first run after many updates. A slow progress bar is not proof that it is stuck.

If it seems frozen

Leave the PC plugged in and wait. Microsoft's task description says a manual run of the scheduled task stops after an hour and may not finish everything, so a long wait is expected. If there is no disk activity at all for a long time, restart and run the analysis command again.

If it shows an error

Errors such as 0x800f0806 have no official Microsoft fix that we could find. The steps below are our general advice, in a safe order, not Microsoft-documented fixes.

  1. Restart the PC and finish any pending updates in Windows Update, then try again.

    You should see no update waiting for a restart. If it does not help, go on.

  2. Run the repair commands from our SFC and DISM guide to check the component store itself. Microsoft documents the DISM RestoreHealth route for repairing update corruption.
  3. Run the Windows Update troubleshooter from Settings > System > Troubleshoot > Other troubleshooters.
  4. If updates themselves keep failing, follow our Windows Update repair guide instead of forcing clean-up.

Do not try to bypass an error by deleting files in WinSxS. If nothing works and the PC is otherwise healthy, accept the space. A healthy PC with a slightly large component store is better than a broken one.

WinSxS is only one of several big system folders, and each has its own rules. Other items in the same Storage category, such as reserved storage, the hibernation file and the page file, are covered in our System & reserved storage guide. The DriverStore and FileRepository folders are a different case, and our guide to DriverStore and FileRepository folder sizes explains them.

FolderWhat it isSafe route
WinSxSThe component storeAnalyse, then Windows clean-up tools. Never by hand.
Windows.oldThe previous Windows installation after an upgradeSettings > System > Storage > Temporary files. Microsoft says it is removed automatically after 10 days.
Delivery Optimization filesA cache of update downloadsTemporary files in Settings, or Disk Cleanup
AppData and ProgramDataApp settings and shared app dataPer app, after a proper uninstall

Deleting the previous Windows installation also removes your ability to go back, and the details are in how to delete Windows.old safely. For a broader measurement routine, see why the C: drive keeps filling up.

Safe long-term maintenance

  1. Leave the scheduled clean-up on. It is Microsoft's own maintenance for this folder.
  2. Install updates normally. Skipping them does not shrink WinSxS and leaves the PC less safe.
  3. Measure before you act. Run the analysis command once or twice a year, or when free space is genuinely low.
  4. Clean only when needed. If the PC is stable and space is tight, use Disk Cleanup or Cleanup recommendations once, then re-measure.
  5. Let Storage Sense handle routine tasks. If it does not run, read Storage Sense not working, and to see how it differs from Disk Cleanup read Storage Sense vs Disk Cleanup.
  6. Fix the real cause of a full drive. A small drive needs more storage or fewer files, not repeated system clean-up. See how to free up disk space on Windows 11.

If you are weighing cleaner programs, read unsafe system cleanup software: any tool that offers to delete from WinSxS should fail that checklist. The wider picture is in our PC cleaner overview for Windows 10 and 11.

Windows 10

The same folder and the same DISM commands exist on Windows 10, and the Disk Cleanup route is the same. Settings labels differ. Windows 10 standard support ended on October 14, 2025.

Frequently asked questions

Safety

Can I delete the WinSxS folder?

No. Microsoft says deleting the folder or files in it can severely damage the system, so the PC may not boot and updates become impossible. Use the built-in tools to reduce its size instead.

Is it safe to run DISM StartComponentCleanup?

It is Microsoft's own tool, so it is safe when the PC is stable and backed up. The cost is that earlier versions of updated components are removed at once, so you may not be able to roll recent updates back.

Should I use /ResetBase?

Not as routine maintenance. Microsoft says existing update packages can't be uninstalled afterwards. Leave it unless you have a specific reason and a backup.

Can I change permissions on WinSxS to delete files?

No. That is how people damage Windows. Use Settings, Disk Cleanup or the DISM command instead.

Size and clean-up

Why is WinSxS so big?

File Explorer counts hard-linked files more than once, and the folder also keeps backups for rollback. The real size is usually smaller than Explorer reports.

How do I see the real size of WinSxS?

Open an elevated Terminal and run DISM /Online /Cleanup-Image /AnalyzeComponentStore. Read Actual Size of Component Store.

Does Windows clean WinSxS by itself?

Yes. A scheduled task cleans up components when the PC is idle, and it waits at least 30 days after an updated component is installed before removing earlier versions.

Why did clean-up free almost nothing?

There may be little overhead to remove, recent updates may still be in the 30-day wait, or the space is used by other folders. Check the analysis report and free space on the drive.

How this guide was checked

The definition of the component store, the hard-link explanation, the analysis report lines, the 30-day wait, the one-hour limit, the immediate StartComponentCleanup behaviour and the ResetBase warning follow Microsoft Learn pages, and the Settings and Windows.old routes follow Microsoft Support. The advice on errors such as 0x800f0806, on ownership changes and on third-party cleaners is our general safety advice, because Microsoft documents no fix for them. Nothing here was run on a real PC, and no space savings were measured.

For more help, see the PC repair guides on PC Repair Atlas.

Sources