How to Safely Reduce WinSxS Folder Size in Windows 11
The WinSxS folder is the Windows Component Store, located at 📁C:\
The built-in clean-up tools can free several gigabytes without breaking your operating system. They remove only files Windows has marked as superseded, so repair and recovery keep working. This guide covers how to check the real size, three ways to reduce it, and what each method costs you.
Open Settings System Storage, turn on Storage Sense, and tick Windows Update Cleanup in Temporary files, then click Remove files. Alternatively, search for Disk Cleanup, select your Windows drive, click Clean up system files, tick Windows Update Cleanup, and click OK. Both methods remove superseded update files without breaking Windows repair or recovery.
How to Check the Current Size of the WinSxS Folder
Check the size first so you know how much a cleanup can save. File Explorer is not much help here. WinSxS contains many hard links, which are files that appear in more than one place but are stored once. Explorer counts each link as a separate file, so the size it shows is usually much larger than the real one. DISM, the built-in servicing tool, gives you the true figure and tells you whether a cleanup is worth doing.
- Right-click the Start button and select Terminal (Admin). Approve the User Account Control prompt. A Windows Terminal window opens. Command Prompt or PowerShell works as well, as long as it runs as administrator.
- Type the analysis command shown below and press Enter.
Dism.exe /online /Cleanup-Image /AnalyzeComponentStore
This command analyzes the component store and tells you if cleanup is recommended. It makes no changes. It takes a minute or two, and you will see a progress indicator while it runs.
What you’ll see: a report that compares the size Windows Explorer reports with the actual size of the component store. The report also breaks out how much is shared with Windows, how much is backups and disabled features, and how much is cache and temporary data. Near the bottom are the date of the last cleanup, the number of reclaimable packages, and a Component Store Cleanup Recommended line that reads Yes or No. If it says No, you will gain little by continuing. If it says Yes, carry on with the methods below.
Methods to Reduce WinSxS Folder Size
The WinSxS folder in Windows 11 uses a significant amount of disk space, and some of that space is old. Each time Windows installs an update, it keeps the previous versions of the files it replaced. That lets you uninstall an update and lets Windows repair damaged system files. Over months and years those older copies pile up.
That is why deleting files from WinSxS by hand is a bad idea. It can break updates, optional features and system repair, and in the worst case leave you with a PC that will not start. The methods below let Windows decide which files are safe to remove. Try them in order, starting with the lightest.
| Method | Ease of Use | Effectiveness |
|---|---|---|
| Storage Sense | High | Moderate |
| Disk Cleanup | Medium | Moderate |
| DISM Commands | Low | High |
Using Storage Sense and Disk Cleanup
Windows 11 includes built-in tools to reclaim disk space. Storage Sense is the automatic one. Disk Cleanup is the classic tool, and it lets you pick the update clean-up option yourself. Both are available in Home and Pro.
To use Storage Sense:
- Open Settings System Storage
- Turn on Storage Sense. Windows then removes temporary files and old Windows update files for you.
- Open Temporary files to see what Windows can clear right now. Tick Windows Update Cleanup if it is listed, then click Remove files. The item appears only when there are leftover update files to remove, and its name can vary slightly between builds.
To use Disk Cleanup:
- Click Start, search for Disk Cleanup, and open it.
- Select your Windows drive, usually C:, and click OK.
- Click Clean up system files. Windows rescans the drive, and you may be asked to choose the drive again.
- Tick Windows Update Cleanup in the list and click OK. If the item is missing, there is nothing left for Windows to clear.
- Confirm with Delete Files.
If updates are waiting to be installed, Windows may finish the cleanup after a restart. Once you remove superseded update files, you can no longer roll back to those older versions.
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. It removes old system update files you no longer need. Because this tool modifies core system files, you must run it from an elevated prompt with administrator rights. Without elevation, it fails with an error saying you must run it as administrator. It safely deletes superseded updates and frees up valuable drive space without breaking your installation.
Open the elevated prompt the same way as before: right-click Start, select Terminal (Admin), and approve the User Account Control prompt. DISM works the same on Home and Pro.
To perform a standard cleanup, run:
Dism.exe /online /Cleanup-Image /AnalyzeComponentStore
The standard cleanup is the one to use for routine maintenance. It removes superseded components and leaves your ability to uninstall recent updates intact. For a more aggressive cleanup, use the next command.
To remove all older versions of components, use the following command:
Dism.exe /online /Cleanup-Image /StartComponentCleanup /ResetBase
Be careful with this one. It makes every update currently installed permanent, so you can no longer uninstall them afterward. Run it only when the PC is working properly and you are happy with its current updates. It can also take a long time. The progress percentage may sit still for several minutes, which is normal. Wait for it to finish and don’t close the window.
What you’ll see: a progress bar that ends with a message saying the operation completed successfully. Windows removes obsolete files that are no longer needed for system recovery, significantly reducing the folder size. Run the analysis command from the first section again to compare the numbers. No restart is normally required, but restart the PC if Windows asks.
Automating Cleanup with Task Scheduler
Automating WinSxS folder maintenance keeps the component store small over time without manual commands. Windows already includes a background maintenance task for this job, called StartComponentCleanup. It runs on its own when the PC is idle. You can find it in Task Scheduler and start it yourself whenever you like. That saves you from repeating the manual steps every few months. Task Scheduler is available in both Home and Pro.
- Click Start and search for Task Scheduler. Open it. The Task Scheduler window appears, with a folder tree on the left.
- Navigate to: Task Scheduler Library\Microsoft\Windows\Servicing\StartComponentCleanup. Expand each folder in the left pane in turn. When you select the Servicing folder, the task appears in the list in the middle.
- Right-click the task and select Run. The Status column changes to Running, and back to Ready when the task is done.

The task shows no progress window. It works quietly in the background, so give it a few minutes before you check the result. If you don't see the Run option, you are probably not signed in as an administrator. Don't change the task's triggers or settings unless you have a reason. The default setup is fine for most PCs.
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 task is more cautious than the DISM commands and may not clear as much in one pass. It is still enough to keep the folder from growing out of control, and it frees up disk space on your Windows 11 computer without any manual work.
Summary
Safely manage the WinSxS folder using built-in tools like Task Scheduler, Disk Cleanup, or DISM. Check the real size with the analysis command first, start with the standard cleanup, and use the more aggressive option only when you are sure you won't need to uninstall recent updates. Manually deleting files can seriously damage your system, so stick to these approved methods to keep your PC running well and save space.
Have a question about this guide?
Answered by AI from this guide. Good questions may be added to this page — please don't include personal details.
Did this guide fix your problem?
About the Author
Richard
Tech Writer, IT Professional
Richard is a writer at Geek Rewind who turns complex IT tasks into clear, step-by-step guides. He draws on years of hands-on experience in system administration and enterprise IT operations, focusing on Windows, Linux and WordPress: the problems people actually run into, and the fixes that work. His server and WordPress guides come from systems he runs himself. Richard builds and maintains the platform behind Geek Rewind, from its Ubuntu servers and Nginx configuration to its custom WordPress plugins. Many new tutorials start with readers' questions, and he's always glad to answer them in the comments.
No comments yet — be the first to share your thoughts!