You can’t just delete everything in the WinSxS folder, because some of those files are needed for Windows to run and update reliably. However, with Windows 7 and above you can use the built-in Disk Cleanup tool to delete older versions of Windows updates you no longer need. With Windows 8.1 and Windows 10, you can use the Command Prompt to clean up the WinSxS folder as well.
Use Disk Cleanup to Delete Old Updates From the SxS Folder
- Open the Disk Cleanup tool. You can do this by typing “disk cleanup” in the taskbar and clicking “Disk Cleanup”
- Click the “Cleanup system files” button.
- Check the box next to “Windows Update Cleanup.”
- Click OK. Note that if you don’t see the Windows Update Cleanup option in Disk Cleanup, that means there aren’t any files that can be safely deleted.
Use the Command Prompt to Clean Up the SxS Folder
If you want a more thorough view of how much space the SxS folder is taking up and the option to clean up unneeded files, use the Command Prompt.
- Launch the command prompt with admin priviledges. You can do this by right-clicking on the Windows icon in the taskbar and click “Command Prompt (Admin).”
- Enter the command: Dism.exe /online /Cleanup-Image /StartComponentCleanup It could take a few minutes for the DISM tool to analyze the folder. When it’s done, you’ll see size details of the components in the WinSxS folder and, at the bottom, a recommendation to clean it up or not.
- If recommended, clean up the folder using this command in the Command Prompt: Dism.exe /online /Cleanup-Image /StartComponentCleanup There’s another command you can use to uninstall Windows updates and service packs, which saves more space, but we don’t recommend you do that, because you won’t be able to uninstall any current service updates or service packs after performing this. The command is Dism.exe /online /Cleanup-Image /StartComponentCleanup The cleanup might take some time, depending on your system and how much you’re deleting, but that extra space will be worth it.
Windows 10 Storage and Backup
Previous TipNext Tip
Reclaim Hard Drive Space by Shrinking Windows 10Delete the Windows.old Folder in Windows 10How to Save Space By Cleaning Windows’ WinSxS FolderBack Up Files with the File History FeatureMount and Burn ISO FilesFormat a Hard Drive For Both Windows and MacZip a File or Folder in Windows 10Control Which OneDrive Files Are Available OfflineMap OneDrive as a Network DriveFetch Any File on a Remote Computer with OneDrive3 Ways to Save SpaceFree Disk Space Automatically with Storage SenseAll Windows 10 TipsHow to Install Apps to an External Drive