Windows 10 contains a folder named WinSxS, which includes such files that are required at the time of Windows installation or update. This folder also contains the backups of these files so that whenever your original files fail or crash, you can still use your Windows 10 comfortably by restoring the required information from the backup files. Because of having this much data in it, the size of the WinSxS folder is very large and it occupies a huge amount of the disk space. In this article, we will explain to you the methods through which you can save the space by cleaning the WinSxS folder in Windows 10.
Saving Disk Space by Cleaning the WinSxS Folder in Windows 10
In order to save the space by cleaning the WinSxS folder, you can make use of any of the following two methods:
Method # 1: Use Disk Cleanup Tool
In this method, we will tell you how you can save the space by cleaning the WinSxS folder by using the Disk Cleanup Tool in Windows 10. For doing this, you will need to perform the following steps:
Type disk cleanup in the search section of your taskbar and click on the search result to launch the Drive Selection window. It is shown in the following image:
If the C drive is not already selected then select it from the Drives dropdown list. Press the OK button after selecting the C drive.
Here you can select the files that you want to delete by checking the check boxes corresponding to those particular files and then click on the OK button.
If you still want to free up more space, then click on the Cleanup system files button.
Clicking on it will launch the Disk Cleanup window for the system files as shown in the image below:
Locate the checkbox corresponding to the field of Windows Update Cleanup and check it as shown in the following image:
Finally, click on the OK button in order to clean up the WinSxS folder in Windows 10.
Method # 2: Clean WinSxS Folder from Command Prompt
In this method, we will tell you how you can save the space by cleaning the WinSxS folder using the Command Prompt in Windows 10. For doing this, you will need to perform the following steps:
You will need to run the Command Prompt with administrative privileges. In order to do this, type cmd in the search section of your taskbar and right click on the search result. Select the Run as Administrator option from the pop-up menu for launching the Command Prompt with administrative privileges. The newly opened Command Prompt window is shown in the following image:
Type the following command on your Command Prompt and then press enter:
Dism.exe /online /Cleanup-Image /AnalyzeComponentStore
This command will tell you the exact amount of space occupied by each file in the WinSxS folder. This command is highlighted in the following image:
As soon as you will press enter, this command will start executing. When the execution finishes, a detailed report containing the space occupied by the WinSxS folder will be displayed on your Command Prompt. It is shown in the image below:
This report will also give the recommendation on whether you should perform the WinSxS cleanup or not. This recommendation is highlighted in the image shown above.
If it is recommended to perform the cleanup, then type the following command on your Command Prompt:
Dism.exe /online /Cleanup-Image /StartComponentCleanup
This command is highlighted in the following image:
After typing this command, just press the enter key to execute it.
As soon as the execution of this command finishes, the WinSxS folder will be cleaned up.
By following any of the two methods listed above, you can easily clean up the WinSxS folder in Windows 10 and save your hard disk space. Both of these methods are very convenient to use and are equally applicable in every situation. However, you can never clean up the whole WinSxS folder using these methods because this folder also contains some files that are necessary for the Windows 10 to work properly and reliably. That is why you can only clear a restricted amount of files in this folder that are redundant or not in use for a very long time. Moreover, do not perform the cleanup if it is not recommended in the second method discussed in this article because unnecessary cleaning up can render your Windows 10 useless by deleting some important files.