How to Check WinSxS Folder Size in Windows 11
The WinSxS folder, or Windows Component Store, acts as a central repository for system files. It grows because Windows keeps older versions of system files whenever you install updates. This allows you to roll back changes if an update causes a problem. It also stores files for optional features you might turn on later. Over time, these superseded files accumulate, taking up significant disk space.
How to Check WinSxS Folder Size in Windows 11
Why check this folder? You might notice it takes up a lot of space. However, Windows uses “hard links,” which means files in this folder often appear in other places on your computer too. If you just check the size using a normal folder view, you will get the wrong number.
What happens when done? You will see an accurate report showing how much space the folder really uses, including how much of that space can actually be cleaned up.
Warning: Do Not Delete the WinSxS Folder Manually
Warning: Never attempt to manually delete files or folders inside C:\Windows\WinSxS. This folder is the Windows Component Store. Deleting files here will break your operating system, prevent Windows updates from installing, and likely cause your computer to stop booting correctly.
Follow these steps to get an accurate report of your storage usage:
- Open Windows Terminal as administrator. (Note: This requires admin privileges).
- Select either Windows PowerShell or Command Prompt.

Once the window is open, type or copy the following command and press Enter:
dism /online /cleanup-image /analyzecomponentstore
The tool will take a moment to scan your system. Once finished, it will display a table with detailed information about the folder size, including:
- Actual Size of Component Store: The real amount of space used, accounting for hard links.
- Backups and Disabled Features: Components kept for recovery or optional features.
- Cache and Temporary Data: Files used to speed up system updates.
- Component Store Cleanup Recommended: Tells you if you can safely shrink the folder size.

Safe Methods to Clean Up the Component Store
If the analysis shows that you can reclaim space, you can use built-in tools to safely remove unnecessary files. These methods are supported by Microsoft and will not damage your system.
1. Using the StartComponentCleanup Command
This command tells Windows to remove superseded versions of components that are no longer needed. Note: This requires admin privileges.
dism /online /cleanup-image /startcomponentcleanup
2. Using the ResetBase Switch
For a more aggressive cleanup, you can use the /ResetBase switch. This removes all superseded versions of every component in the store. You will not be able to uninstall existing updates after running this. Note: This requires admin privileges.
dism /online /cleanup-image /startcomponentcleanup /resetbase
3. Using Task Scheduler
Windows 11 automatically runs a cleanup task when the system is idle. You can trigger this manually via Task Scheduler by navigating to Microsoft\Windows\Servicing\StartComponentCleanup and running the task.
Summary
The WinSxS folder is essential for system health, but it can grow over time. Because Windows uses hard links, regular file checkers give inaccurate size reports. By using the DISM command, you get a clear look at how much space is actually being used by the component store. You can safely manage this space using the /StartComponentCleanup command. For more advanced technical details, refer to the official Microsoft documentation.
Is it safe to clear the WinSxS folder?
Yes, but only if you use the official DISM commands provided by Microsoft. Never delete files manually in File Explorer. Using the /StartComponentCleanup command safely removes old, unneeded system files while keeping your computer stable and ensuring that future Windows updates and system recovery features continue to work perfectly.
How do I know if my WinSxS folder is too big?
You can determine if the folder is too large by running the DISM /AnalyzeComponentStore command. The output will explicitly state whether a cleanup is recommended. If your disk space is low and the report shows several gigabytes of reclaimable space, it is a good time to perform a cleanup.
Was this guide helpful?
Leave a Reply