If you’ve ever dug through your Windows installation drive looking for space hogs, you’ve probably stumbled upon the WinSxS folder. It’s one of those system folders that quietly balloons to 10GB or more without you noticing, and your first instinct might be to delete it. Don’t—Windows needs it to function, and removing files manually will break your system.
The WinSxS folder stores system components, including older versions that Windows keeps for updates and rollbacks. The good news is that you can safely trim it down using built-in tools rather than manually hunting for the largest files and folders on your Windows PC.
File Explorer makes the folder size misleading
The hard links make the component store look bigger than it is
Right-click the WinSxS folder, check its properties, and you’ll likely see a number that makes you want to nuke the whole thing. On my system, File Explorer reports it at 14GB. That’s a lot of space for a folder most people have never heard of—but that number is misleading.
Windows uses something called hard links to make files appear in multiple locations without actually duplicating data. The operating system counts these hard-linked files multiple times when calculating folder size, which inflates the WinSxS number. The actual disk space it occupies is usually smaller than what File Explorer shows. You can check the real size using a simple command.
-
Open PowerShell as administrator and type
Dism.exe /Online /Cleanup-Image /AnalyzeComponentStore, then press Enter. - Wait for the analysis to complete. It takes a minute or two.
- Look for the Actual Size of Component Store in the output.
That “Actual Size of Component Store” figure is what the folder actually takes up on your drive. On most systems, you’ll find it’s 5-10GB, which is normal for a healthy Windows installation. If it’s significantly larger, cleaning makes sense.
Now, even if the folder is bloated, you can’t just delete files from it manually. WinSxS stores critical components that Windows needs for system stability, updates, and rollbacks. The operating system keeps older versions of DLLs and other files so it can undo problematic updates or maintain compatibility with certain applications.
If you delete the wrong file, you’ll corrupt your installation—potentially making Windows unbootable. This is why built-in cleanup tools exist. They know which files are safe to remove and which ones Windows still needs.
Disk Cleanup is the safest way to reclaim space
It targets the old files your system no longer needs
For most people, Disk Cleanup is all you need. It’s built into Windows, requires no technical knowledge, and won’t let you break anything. I’ve used it for years as part of regular maintenance, and it consistently frees up a few gigabytes without any fuss.
The key is accessing the system file options, which aren’t visible by default. Here’s how to do it:
- Press the Windows key, type Disk Cleanup, and open it.
- Select your system drive (usually C:) and click OK.
- Click Clean up system files at the bottom of the window.
- Select your system drive again and wait for the scan to finish.
- Check Windows Update Cleanup, and also Previous Windows installations if they appear.
- Click OK, then confirm the deletion.
The Windows Update Cleanup option targets old update files stored in WinSxS that your system no longer needs. When I performed this process on my own machine, I freed up 3GB of space. If you recently upgraded from an older Windows version, previous Windows installations can reclaim even more space—sometimes 10GB or more.
This process isn’t instant. It can take several minutes, and Windows might ask you to restart afterward. Don’t panic if your system seems slow during the process, as it’s working through a lot of files.
DISM commands offer deeper cleaning
It gives you more control, but one flag removes your rollback options
Disk Cleanup is great for routine maintenance, but sometimes it doesn’t go far enough. If you’ve run it and your WinSxS folder still seems bloated—or you just want more control over the process—you can use the Deployment Image Servicing and Management (DISM) tool via Terminal. This utility is also handy for other system repairs, so knowing how to use DISM commands to repair Windows 11 system images is a great skill to have.
Open PowerShell as administrator by right-clicking the Start button and selecting Terminal (Admin). Then run the standard cleanup command:
-
Type
Dism.exe /Online /Cleanup-Image /StartComponentCleanupand press Enter. - Wait for the process to complete; it can take a few minutes depending on your system.
This command removes older versions of updated components that Windows has kept around. It’s more thorough than Disk Cleanup but still plays it safe, preserving your ability to uninstall recent updates if something goes wrong.
There’s also a more aggressive option. Adding the /ResetBase flag removes all superseded versions of components permanently:
-
Type
Dism.exe /Online /Cleanup-Image /StartComponentCleanup /ResetBaseand press Enter. - Let it run—this one takes longer.
Once you run /ResetBase, you lose the ability to uninstall any previously installed updates. Windows can’t roll back what it no longer has files for. I recommend using this when your system has been stable for a while, and you’re confident you won’t need to undo anything.
Windows automatically cleans the component store
It handles maintenance in the background—when it gets the chance
Windows already handles WinSxS maintenance on its own. A scheduled task runs in the background during idle time, cleaning up old component files without your input. You can even automate fixes or maintenance that keep your PC running smoothly for other parts of the OS using similar methods.
However, the problem with that scheduled task is that it’s conservative; it won’t reclaim as much space as manual methods, and you never know when it actually runs. You can find this task in Task Scheduler if you’re curious:
- Press the Windows key, type Task Scheduler, then open it.
- Navigate to Task Scheduler Library > Microsoft > Windows > Servicing.
- Look for the task named StartComponentCleanup.
This task performs basic cleanup similar to the DISM command, but it waits for your system to be idle before running. If you use your PC constantly or shut it down when you’re done, the task might rarely get a chance to execute. That’s why manual cleanup still matters.
You can right-click the task and select Run to trigger it immediately. It’s a middle ground between Disk Cleanup and DISM commands.
Don’t obsess over WinSxS size—checking it every few months is plenty. The folder will always take up several gigabytes because Windows genuinely needs those files to remain stable. The goal isn’t to minimize the folder to zero; it’s simply to keep it from growing out of control and eating your SSD. If you’re still tight on space after cleaning WinSxS, other ways to slim down your Windows installation, like auditing your installed programs or moving large files to a secondary drive, can help you reclaim even more space.

