How to Clean Up the WinSxS Folder in Windows 11

|

|

The content provides a guide for students and new users on decreasing the size of the WinSxS folder in Windows 11, key to the system’s operation. Deleting the folder can seriously damage the system; instead, reduction can be achieved using built-in Windows tools, like the Task Scheduler or running specific commands in the Terminal. Disk…

This post shows students and new users steps to clean up or reduce the WinSxS folder size in Windows 11.

The component store (WinSxS folder) contains components that makeup Windows and allow you to operate your system. If you need to roll back changes or repair corrupted files, these components are kept in this folder.

The folder is located at C:\Windows\WinSxS. Files in this folder might appear to be stored in more than one place in the operating system, but there’s usually only one copy of the file, and the rest are hard links.

If you’re running out of storage space on your Windows device, don’t delete the WinSxS folder, but instead, reduce the size of the WinSxS folder using tools built into Windows.

Deleting files from the WinSxS folder or deleting the entire WinSxS folder may severely damage your system so that your PC might not boot and make it impossible to update.

Below is how to reduce the WinSxS folder size in Windows 11.

How to reduce the size of the WinSxS folder in Windows 11

As mentioned above, If you’re running out of storage space on your Windows device, don’t delete the WinSxS folder, but instead, reduce the size of the WinSxS folder using tools built into Windows.

Below is how to reduce the WinSxS folder size in Windows 11.

One can use multiple ways and tools to clean up or reduce the WinSxS folder size.

One way is to use the Task Scheduler. The StartComponentCleanup task automatically cleans up components when the system isn’t in use.

  • If Task Scheduler is not open, click on Start, then search for Task Scheduler and open.
  • Expand the console tree and navigate to Task Scheduler Library\Microsoft\Windows\Servicing\StartComponentCleanup.
  • Under Selected Item, click Run.

Alternatively, open Windows Terminal as administrator, then run the commands below.

Using the /StartComponentCleanup parameter of Dism.exe on a running version of Windows 10 or later gives you similar results to running the StartComponentCleanup task in Task Scheduler.

First, open Windows Terminal as administrator and select either Windows PowerShell or Command Prompt.

Run the commands below:

Dism.exe /online /Cleanup-Image /StartComponentCleanup

Running the commands above with the /ResetBase parameter will remove all superseded versions of every component in the component store.

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

Using Disk Cleanup to reduce the size of the WinSxS folder

You can use Disk Cleanup to reduce the number of unnecessary files on your drives, which can help your PC run faster. It can delete temporary and system files, empty the Recycle Bin and remove a variety of other items you might no longer need.

The option to clean up updates helps reduce the size of the component store.

That should do it!

Conclusion:

This post showed you how to reduce the WinSxS folder size in Windows 11. Please use the comment form below if you find any errors above or have something to share.


Discover more from Geek Rewind

Subscribe to get the latest posts to your email.

Like this:



Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Blog at WordPress.com.

Discover more from Geek Rewind

Subscribe now to keep reading and get access to the full archive.

Continue reading