Skip to content
Follow
Windows

How to Safely Reduce WinSxS Folder Size in Windows 11

Richard
Written by
Richard
Jul 22, 2022 Updated Sep 15, 2026 3 min read
How to Reset Your Microsoft Account Password
How to Reset Your Microsoft Account Password

The WinSxS folder (the Windows Component Store that holds old system files and updates) often grows past 20GB and fills up your hard drive. Shrinking this folder safely requires built-in tools like Disk Cleanup rather than deleting files by hand.

Advertisement

Running the system clean-up tools frees up gigabytes of storage space without breaking your operating system or causing error recovery problems.

⚡ Quick Answer

Safely reduce the WinSxS folder size using Storage Sense in Settings or the Disk Cleanup tool. For a deeper clean, open Windows Terminal as an administrator and run Dism.exe /online /Cleanup-Image /StartComponentCleanup.

Advertisement

How to Check the Current Size of the WinSxS Folder

Checking the WinSxS folder size helps you see how much disk space the component store is actually using before you try to clean it up. Windows File Explorer often shows an incorrect size for this folder because of how it counts system files. You need to run a quick command in PowerShell or Command Prompt to get the real size and see if a cleanup is recommended.

Dism.exe /online /Cleanup-Image /StartComponentCleanup

This command analyzes the component store and tells you if cleanup is recommended. What you’ll see: A report will appear, comparing the folder’s actual size with the space it occupies on your disk.

Methods to Reduce WinSxS Folder Size

The WinSxS folder in Windows 11 uses a significant amount of disk space. Managing the WinSxS folder size requires effective methods to reduce its footprint.

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 resides in Settings under System Storage It automatically removes temporary files and old Windows update files. Alternatively, the classic Disk Cleanup tool allows you to select ‘Windows Update Cleanup’ to remove superseded files.

Advertisement

Advanced DISM Cleanup (Admin Required)

Running a DISM (Deployment Image Servicing and Management) cleanup is the safest built-in method to reduce WinSxS folder size by removing old system update files you no longer need. Because this tool modifies core system files, you must run it from an elevated command prompt with administrator rights. It safely deletes superseded updates and frees up valuable drive space without breaking your installation.

To perform a standard cleanup, run:

Dism.exe /online /Cleanup-Image /StartComponentCleanup

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

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

What you'll see: Windows removes obsolete files that are no longer needed for system recovery, significantly reducing the folder size.

Advertisement

Automating Cleanup with Task Scheduler

Automating WinSxS folder maintenance ensures your system keeps the component store small over time without requiring you to run manual commands. You can set up a background maintenance task using Task Scheduler so Windows handles the cleanup on a regular schedule. This prevents the folder from growing too large again and saves you from having to repeat the manual steps every few months.

  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
windows 11 task scheduler run task

The system scans for and removes unneeded components in the background to reduce WinSxS folder size. These components, part of Windows features and updates, can accumulate over time. This automatic cleanup process helps free up disk space on your Windows 11 computer.

Summary

Safely manage the WinSxS folder using built-in tools like Task Scheduler, Disk Cleanup, or DISM. Manually deleting files can seriously damage your system, so stick to these approved methods to keep your PC running well and save space.

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

No, it is never safe to manually delete files from the WinSxS folder because these are critical system components needed for Windows to work correctly.

Was this guide helpful?

Tags: #Windows 11
Was this helpful?
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.

Advertisement

📚 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

No comments yet — be the first to share your thoughts!

Leave a Comment

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