Windows

How to Safely Reduce WinSxS Folder Size in Windows 11

Richard
Written by
Richard
Jul 22, 2022 Updated Apr 29, 2026 3 min read
How to Safely Reduce WinSxS Folder Size in Windows 11

The WinSxS folder, located at C:\Windows\WinSxS, is the heart of your Windows 11 system. It is known as the Windows Component Store. It keeps copies of system files needed to run your computer, fix errors, and install updates.

Why does it exist? It ensures that if a system file gets corrupted, Windows can repair itself using these stored backups.

What happens when it grows? It consumes disk space, but it is a necessary trade-off for system stability.

How to Check the Current Size of the WinSxS Folder

Before cleaning, you should check how much space it uses. Note: This step requires admin privileges. Open Command Prompt as an administrator and run the following command:

💻Code
Dism.exe /online /Cleanup-Image /StartComponentCleanup

This command analyzes the component store and tells you if cleanup is recommended. What happens when done? You will see a report showing the actual size of the folder versus the size on disk.

Methods to Reduce WinSxS Folder Size

You can manage this folder using different tools. Here is a comparison of the most effective methods:

MethodEase of UseEffectiveness
Storage SenseHighModerate
Disk CleanupMediumModerate
DISM CommandsLowHigh

Using Storage Sense and Disk Cleanup

Windows 11 includes built-in tools to reclaim disk space. Storage Sense can be found in Settings under System > Storage. It automatically removes temporary files and old delete-windows-old-folder-in-windows-11/" class="sal-link" rel="noopener" target="_blank" data-sal-id="23943">Windows update files. Alternatively, the classic Disk Cleanup tool allows you to select ‘Windows Update Cleanup’ to remove superseded files.

Advanced DISM Cleanup (Admin Required)

For a deep clean, use the Deployment Image Servicing and Management (DISM) tool. Note: These steps require admin privileges. Open Windows Terminal as an administrator.

To perform a standard cleanup, run:

💻Code
Dism.exe /online /Cleanup-Image /StartComponentCleanup

To remove all older versions of components, use the following command:

💻Code
Dism.exe /online /Cleanup-Image /StartComponentCleanup /ResetBase

What happens when done? Windows removes obsolete files that are no longer needed for system recovery, significantly reducing the folder size.

Automating Cleanup with Task Scheduler

Windows runs a maintenance task automatically, but you can trigger it manually. Note: This step requires admin privileges.

  1. Click Start and search for Task Scheduler.
  2. Navigate to: Task Scheduler Library\Microsoft\Windows\Servicing\StartComponentCleanup.
  3. Right-click the task and select Run.
Windows 11 Task Scheduler running component cleanup task

What happens when done? The system will scan for unnecessary components and remove them in the background.

Summary

The WinSxS folder is essential for Windows stability. While it can grow quite large, you should only use built-in tools like Task Scheduler, Disk Cleanup, or the DISM command-line tool to manage its size. Manually deleting files in C:\Windows\WinSxS will damage your system. Using these approved methods regularly will keep your PC running smoothly and save disk space.

Is it safe to manually delete files from the WinSxS folder?

No, you should never manually delete files from the WinSxS folder. This folder contains critical system components and dependencies required for Windows to function. Deleting files manually can cause system instability, prevent Windows updates from installing, or even stop your computer from booting entirely. Always use official tools to manage its size.

Was this guide helpful?

Tags: #Windows 11
Richard

About the Author

Richard

Tech Writer, IT Professional

Richard, a writer for Geek Rewind, is a tech enthusiast who loves breaking down complex IT topics into simple, easy-to-understand ideas. With years of hands-on experience in system administration and enterprise IT operations, he’s developed a knack for offering practical tips and solutions. Richard aims to make technology more accessible and actionable. He's deeply committed to the Geek Rewind community, always ready to answer questions and engage in discussions.

2468 articles → Twitter

📚 Related Tutorials

How to Check WinSxS Folder Size in Windows 11
Windows How to Check WinSxS Folder Size in Windows 11
How to Set Windows Terminal to Open with Command Prompt on Windows 11
Windows How to Set Windows Terminal to Open with Command Prompt on Windows 11
How to Use Windows 11 Disk Cleanup and Storage Sense
Windows How to Use Windows 11 Disk Cleanup and Storage Sense
How to Open Windows Terminal as Admin Automatically
Windows How to Open Windows Terminal as Admin Automatically

Leave a Reply

Your email address will not be published. Required fields are marked *