Windows 11 stores component files in the WinSxS folder, which can grow to several gigabytes over time. This growth often triggers low disk space warnings on smaller SSDs. The WinSxS folder is not a cache you can delete. It holds system files required for future updates, rollbacks, and feature changes. This article explains how to safely reduce the size of WinSxS using built-in tools without breaking Windows Update or the ability to uninstall future updates.
Key Takeaways: Safe WinSxS Cleanup Without Servicing Risks
- Disk Cleanup > Clean up system files > Windows Update Cleanup: Removes superseded update backup files without affecting current updates.
- DISM /Online /Cleanup-Image /StartComponentCleanup: Safely removes older component versions and resets the component store.
- DISM /Online /Cleanup-Image /StartComponentCleanup /ResetBase: Removes all previous versions of components — prevents rollback to older updates but does not break future servicing.
Why WinSxS Grows and Why You Cannot Simply Delete It
The WinSxS folder, located at C:\Windows\WinSxS, is the component store for Windows. Every system file, driver, and optional feature is stored here as discrete component manifests and payload files. When Windows Update installs a new version of a component, the old version is kept inside WinSxS. This enables you to uninstall the update later or roll back to a previous build.
WinSxS also stores files for Windows features you have not installed yet. When you turn on a feature through Settings > Apps > Optional Features, Windows pulls the required files from WinSxS rather than downloading them again. Deleting the WinSxS folder directly will break the operating system. Windows will fail to install future updates, add features, or repair itself using System File Checker or DISM.
The true size of WinSxS is often misreported because many files are hard links. Hard links point to the same physical data on disk but appear as separate files. The actual disk space used by WinSxS is shown by the command DISM /Online /Cleanup-Image /AnalyzeComponentStore. This command reports the shared and reclaimed sizes.
Steps to Reduce WinSxS Size Using Built-in Tools
All methods below use tools included with Windows 11. No third-party software is required. You must run these commands from an elevated Command Prompt or PowerShell session.
- Open Disk Cleanup as administrator
Press the Windows key, typeDisk Cleanup, right-click the Disk Cleanup app, and select Run as administrator. Confirm the User Account Control prompt. - Select the system drive and clean system files
In the Disk Cleanup dialog, select the drive where Windows is installed usually C:. Click Clean up system files. This step requires administrator privileges again. - Check Windows Update Cleanup and other safe items
In the list that appears, scroll down and check Windows Update Cleanup. This removes backup files for superseded updates. You can also check Delivery Optimization Files and Windows Upgrade Log Files. Do not check Windows ESD installation files unless you are certain you will not reset this PC later. Click OK and then Delete Files. - Run DISM StartComponentCleanup
Open an elevated Command Prompt or PowerShell. Type the following command and press Enter:DISM /Online /Cleanup-Image /StartComponentCleanup
This command removes older versions of components that are no longer needed. It does not remove the base component store. The operation may take several minutes. - Optional: Run DISM with ResetBase to remove all previous versions
If you are confident you will not need to uninstall the most recent cumulative update, run this command:DISM /Online /Cleanup-Image /StartComponentCleanup /ResetBase
This removes every previous version of every component. After this command, you cannot uninstall the latest servicing stack or cumulative update. Future updates will still install normally. - Verify reclaimed space
Run the analyze command to see the new size:DISM /Online /Cleanup-Image /AnalyzeComponentStore
The report shows the total component store size and the amount of space that can still be reclaimed.
Using Storage Sense to Clean WinSxS Automatically
Windows 11 includes Storage Sense, which can automate the cleanup of Windows Update files. Go to Settings > System > Storage. Turn on Storage Sense. Click Configure Storage Sense or run it now. Under Temporary Files, ensure Delete temporary files that my apps are not using is checked. Click Clean now to run it immediately. Storage Sense runs the same Windows Update Cleanup that Disk Cleanup uses.
Common Mistakes and Limitations When Cleaning WinSxS
Deleting the WinSxS folder directly leads to a broken OS
Some guides recommend deleting the entire WinSxS folder or moving it to another drive. Doing so will make Windows unable to install updates, repair system files, or enable optional features. The only safe way to reduce the folder is to use the DISM commands or Disk Cleanup listed above.
WinSxS size appears unchanged after cleanup
The WinSxS folder size reported by File Explorer may not decrease significantly even after cleanup. This is because hard links still point to the same physical blocks on disk. Use the DISM analyze command to see the true reclaimed space. A reduction of 1-3 GB is typical after a single cleanup. Over time, running StartComponentCleanup after each monthly update keeps the folder lean.
ResetBase removes the ability to uninstall the latest update
Running /ResetBase deletes all backup copies of previous component versions. If the most recent cumulative update causes problems, you cannot uninstall it from Settings > Windows Update > Update history > Uninstall updates. You would need to use System Restore or a full reset instead. Only use ResetBase after you have verified the latest update works correctly for at least one week.
Third-party WinSxS cleaners can corrupt the component store
Tools that claim to shrink WinSxS aggressively often delete files that DISM considers necessary. This can cause DISM and SFC to report corruption errors. Always use Microsoft’s built-in tools. If you already used a third-party tool and see errors, run DISM /Online /Cleanup-Image /RestoreHealth from an elevated command prompt to repair the component store.
DISM Cleanup Commands vs Disk Cleanup: Scope of Cleanup
| Item | Disk Cleanup (Windows Update Cleanup) | DISM StartComponentCleanup | DISM StartComponentCleanup /ResetBase |
|---|---|---|---|
| What it removes | Superseded update backup files | Older component versions and replaced packages | All previous component versions except the current one |
| Preserves rollback ability | Yes — you can uninstall the latest update | Yes — you can uninstall the latest cumulative update | No — you cannot uninstall the latest cumulative update |
| Impact on future updates | None | None | None |
| Typical space reclaimed | 500 MB to 2 GB | 1 GB to 3 GB | 2 GB to 5 GB |
All three methods are safe for future servicing. The only tradeoff with ResetBase is losing the ability to uninstall the current update. Run Disk Cleanup first, then StartComponentCleanup, and only use ResetBase when you need maximum space recovery.
You can now reduce the WinSxS folder size on Windows 11 without breaking Windows Update or feature installation. Start with Disk Cleanup and the basic StartComponentCleanup command. If you need more space and have verified the latest update is stable, run the ResetBase variant. To monitor future growth, schedule Storage Sense to run weekly or run DISM /Online /Cleanup-Image /AnalyzeComponentStore after each Patch Tuesday update.