How to Clean Windows WinSxS Folder to Save Space

With Windows 8.1 and Windows 10, you can use the Command Prompt to clean up the WinSxS folder. Windows uses a system folder called WinSxS to store files that are needed for your Windows installation, as well as backups or updates to those files. It's a space hog, however, taking up several gigabytes of space and growing with each Windows Update you perform. Use the steps below to clean up unnecessary files in that WinSxS folder and reclaim valuable hard drive space.


Use the Command Prompt to Clean Up the WinSxS Folder

1. Launch the Command Prompt with admin priviledges. You can do this by pressing Window key + X key and click "Command Prompt (Admin)."

How to Clean Windows WinSxS Folder to Save Space D6oYtUm

2. Execute following command:

Code:

Dism.exe /online /Cleanup-Image /StartComponentCleanup


How to Clean Windows WinSxS Folder to Save Space 3g7TFGr

Using the /ResetBase switch with the /StartComponentCleanup parameter of DISM.exe on a running version of Windows 10 removes all superseded versions of every component in the component store.

From an elevated command prompt, type the following:

Code:

Dism.exe /online /Cleanup-Image /StartComponentCleanup /ResetBase


How to Clean Windows WinSxS Folder to Save Space HpHQFzA

    Warning
All existing service packs and updates cannot be uninstalled after this command is completed. This will not block the uninstallation of future service packs or updates.





Did you find this tutorial helpful? Don’t forget to share your views with us.