Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

WinSxS Cleanup: Free Up Space on Windows 10

· 5 min read · Home Tech

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

WinSxS (Windows Side-by-Side) is a hidden folder that stores system components, updates, and backups. Over time, it can grow to several gigabytes, eating up valuable disk space. Cleaning it safely can recover space without harming your system. This guide walks you through the built-in tools Windows 10 provides—no third-party software needed.

What You'll Need

  • An administrator account on the PC
  • At least 10–15 minutes of free time (the process can be slow)
  • A stable power connection (if on a laptop, keep it plugged in)

Step-by-Step

  1. Open Disk Cleanup as Administrator. Click the Start button, type Disk Cleanup, right-click the result, and choose Run as administrator. If prompted by User Account Control, click Yes.
  2. Select the system drive. Usually this is C:. Click OK. The tool will scan the drive for files it can remove.
  3. Click "Clean up system files." This button is in the lower-left of the Disk Cleanup window. It will ask you to select the drive again; choose C: and click OK. A second, deeper scan runs.
  4. Check the "Windows Update Cleanup" box. In the list of files to delete, look for Windows Update Cleanup. This is the main WinSxS cleaner. You can also check Delivery Optimization Files and Temporary Windows installation files if present. Leave everything else unchecked unless you know what it does.
  5. Click OK and then "Delete Files." Confirm when asked. The process can take from a few minutes to over half an hour, depending on how much there is to remove. Let it finish completely.
  6. Restart your PC. This ensures any locked files are released and the cleanup completes cleanly.
  7. Check the space freed. Open File Explorer, right-click C:, and select Properties to see the new free space.

Alternative: Use DISM (Command Prompt)

  1. Open Start, type cmd, right-click Command Prompt, and select Run as administrator.
  2. Type the following command and press Enter:
    DISM.exe /Online /Cleanup-Image /StartComponentCleanup
  3. Wait for the progress bar to reach 100%. This can take 20–60 minutes. Do not close the window.
  4. Optionally, add /ResetBase to the command to remove all superseded versions of updates. Only do this if you are sure you will not need to uninstall any current updates.

Common Mistakes

  • Running Disk Cleanup without admin rights – The "Clean up system files" button won't appear, so you can't reach the WinSxS options.
  • Deleting everything in Disk Cleanup – Some items, like "Downloads" or "Recycle Bin," may contain files you want. Stick to the Windows Update Cleanup entries.
  • Using /ResetBase unnecessarily – This prevents you from uninstalling currently installed updates. If you might need to roll back a driver or update, skip it.
  • Interrupting DISM or Disk Cleanup – Closing the window or shutting down mid-process can leave the component store in an inconsistent state.
  • Manually deleting files from the WinSxS folder – This is dangerous. Never delete anything inside C:\Windows\WinSxS directly; use the tools described here.

Tips

  • Run Disk Cleanup first—it's faster and safer than DISM for most users. Only use DISM if Disk Cleanup doesn't free enough space.
  • Check the size of WinSxS before and after with this command in an admin Command Prompt:
    DISM.exe /Online /Cleanup-Image /AnalyzeComponentStore
  • If you have very little free space, consider moving your page file or disabling hibernation temporarily, but do so cautiously and re-enable after cleanup.
  • Keep your system up to date. Windows 10 automatically runs component cleanup after major updates, but running these tools a few times a year helps.
  • Use Storage Sense (Settings > System > Storage) to automate cleaning of temporary files, but it doesn't directly target WinSxS as effectively as the tools above.

Troubleshooting

  • Disk Cleanup doesn't show "Windows Update Cleanup" – This is normal if you've run it recently or if there are no superseded updates. Try the DISM method instead.
  • DISM gets stuck at 20% or 40% – Wait at least 10 minutes. It often appears frozen but is still working. Do not close the window. If it's stuck for over an hour, restart and try again with an internet connection (DISM may need to pull files from Windows Update).
  • Error 0x800f081f or similar – This indicates a corrupted component store. Run sfc /scannow in an admin Command Prompt, then try DISM again.
  • Not enough space freed – WinSxS will always have a base size (typically 5–10 GB) that cannot be reduced. Also, some files are hard links; the folder may appear large but the actual space used is less. Use the AnalyzeComponentStore command to see the true size.
  • Cleanup fails with "component store is in use" – Close all open programs, disable your antivirus temporarily, and try again. Also ensure no Windows Update is running in the background.

Frequently Asked Questions

Is it safe to clean WinSxS?

Yes, when using the built-in tools. They only remove files that are no longer needed by the system. Never delete anything manually from the folder.

How much space can I free up?

It varies. On a system that hasn't been cleaned in years, you might free 5–10 GB. On a well-maintained system, expect less than 2 GB.

What is the difference between Disk Cleanup and DISM?

Disk Cleanup is a graphical tool that handles many file types, including Windows Update Cleanup. DISM is a command-line tool that can do a deeper cleanup of the component store, including removing old versions of updates.

Will cleaning WinSxS break my system or prevent future updates?

No. The tools are designed to keep the system functional. However, using /ResetBase will prevent you from uninstalling currently installed updates, so use it only if you're sure you won't need to.

How often should I clean WinSxS?

Once every few months, or when you notice low disk space. Running it too often won't free much because there aren't many obsolete components to remove.

Can I use third-party tools to clean WinSxS?

It's not recommended. The built-in tools are safe and sufficient. Third-party tools may delete essential files or cause system instability.