TechBuzzPro

How to Clean Up and Compress WinSxS in Windows

· 5 min read · Windows & PC

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

The WinSxS folder (Windows Side-by-Side) stores component files that Windows needs for updates and feature changes. It is not a cache you can safely delete by hand, and manually removing files from it can break Windows Update or the operating system itself. The correct way to reduce its size is to use the built-in tools that Windows provides: Disk Cleanup, the Deployment Image Servicing and Management (DISM) command-line tool, and the scheduled task that cleans up superseded components. With these, you can reclaim several gigabytes without harming the system. Before you start, make sure you have administrator rights, a recent backup of important files, and a working internet connection in case you need to repair anything.

What You'll Need

  • Administrator access to the PC (you will be prompted for elevation).
  • A recent backup of your personal files, just in case a system change goes wrong.
  • Enough free disk space to let Windows move files during cleanup (at least a few hundred MB).
  • Windows 10 or Windows 11 (the steps below are for these versions; older versions have different tools).

Step-by-Step

  1. Open Disk Cleanup as administrator. Press the Windows key, type Disk Cleanup, right-click the result, and choose Run as administrator. If you only open it normally, the option to clean system files will be missing. Menu labels can differ slightly by Windows version and region.
  2. Select the system drive. Choose the drive where Windows is installed (usually C:) and click OK.
  3. Click “Clean up system files”. This button appears at the bottom of the Disk Cleanup dialog. Click it, choose the same drive again, and wait while Windows scans.
  4. Check “Windows Update Cleanup”. In the list of files to delete, tick Windows Update Cleanup (it may be called “Windows Update Cleanup” or similar). This is the entry that removes superseded update files from WinSxS. You can also tick other categories you do not need, such as Temporary Internet Files or Recycle Bin, but avoid ticking anything you are unsure about.
  5. Click OK and confirm. Windows will ask if you are sure; click Delete Files. The cleanup can take several minutes. Do not close the window or shut down the PC while it runs.
  6. Use DISM to analyze the component store. Open Command Prompt as administrator (search cmd, right-click, Run as administrator). Type DISM /Online /Cleanup-Image /AnalyzeComponentStore and press Enter. This reports the actual size of WinSxS and how many reclaimable packages exist. It does not change anything.
  7. Run the DISM cleanup command. If the analysis shows reclaimable packages, run DISM /Online /Cleanup-Image /StartComponentCleanup. This removes superseded components and reduces the folder size. Add /ResetBase only if you are sure you will not need to uninstall any installed updates; it makes all updates permanent. The command can take 20–60 minutes.
  8. Let the scheduled task run. Windows already runs a background task called StartComponentCleanup that automatically cleans up superseded components after a period. You can trigger it manually in Task Scheduler under Microsoft > Windows > Servicing, but running the DISM command above is usually enough.
  9. Check the result. Run the AnalyzeComponentStore command again to see the new size. You can also compare the folder size in File Explorer, but note that Explorer may show a larger size than DISM because of hard links; trust the DISM figure.

Common Mistakes

  • Deleting files from WinSxS manually. Never do this. The folder contains hard links to system files; deleting them can corrupt Windows and make it unbootable.
  • Using third-party “cleaners” that target WinSxS. These tools often use unsupported methods and can break updates. Stick to the built-in tools.
  • Running Disk Cleanup without administrator rights. The system file cleanup options will not appear, so you will not clean WinSxS at all.
  • Using /ResetBase without understanding it. After ResetBase, you cannot uninstall any previously installed updates. Only use it if you are confident you will not need to roll back.
  • Expecting WinSxS to become tiny. Even after cleanup, the folder remains large because it holds essential components. A size of several GB is normal.

Tips

  • Run Disk Cleanup and DISM cleanup after major Windows updates to keep the folder from growing unnecessarily.
  • If you are low on disk space, move personal files to another drive or use Storage Sense to free up space automatically.
  • Use the AnalyzeComponentStore command before and after cleanup to see how much was actually reclaimed.
  • Keep your system backed up; a system image lets you recover if a cleanup step causes problems.
  • Do not disable the Windows Update service or the scheduled cleanup task; they help manage WinSxS over time.

Troubleshooting

If Disk Cleanup does not show “Windows Update Cleanup”, make sure you launched it as administrator and that the system drive is selected. If the option is still missing, your Windows version may handle cleanup differently; try the DISM method instead.

If DISM reports an error, note the error code and search for it on the official Microsoft support site. Common issues include a pending update that requires a restart, or a corrupted component store. Running DISM /Online /Cleanup-Image /RestoreHealth can repair the store, but it requires an internet connection and may take a while.

If the cleanup seems stuck, do not force-close the window. Let it run; DISM can appear frozen at a percentage for several minutes. If it truly hangs for over an hour, restart the PC and try again.

If you accidentally used /ResetBase and now cannot uninstall an update, you will need to use a system restore point or reinstall Windows to roll back. This is why you should back up before making changes.

Frequently Asked Questions

Can I delete the WinSxS folder?

No. Deleting it will break Windows and likely make the PC unbootable. Use the built-in cleanup tools instead.

Why does WinSxS keep growing?

Windows stores multiple versions of components to allow updates and rollbacks. Over time, superseded versions accumulate. Regular cleanup removes them.

Is it safe to run DISM /ResetBase?

It is safe for the system, but it removes the ability to uninstall previously installed updates. Only use it if you are sure you will not need to roll back.

How much space can I reclaim?

The amount varies. On a typical PC, cleanup might free 1–5 GB, but it depends on how many updates have been installed and how long it has been since the last cleanup.

Does Disk Cleanup remove all old updates?

It removes superseded update files that are no longer needed. Some components remain because they are still in use or needed for rollback.

Will cleaning WinSxS affect my programs?

No. The cleanup only removes unused system components. Your installed programs and personal files are not touched.