Clean up the WinSxS folder to free up Windows space

Windows uses a system folder called WinSxS to store Windows installation files as well as backup files or update files. However, these files take up a lot of space on the system drive. Therefore, you should delete these folders and files to free up space on your Windows computer.

What exactly is the WinSxS folder?

Before we learn how to clean up the WinSxS folder, let's go over some important points.

First of all, you cannot completely delete the WinSxS folder, but you can definitely reduce its size. The reason is that the WinSxS folder contains many important libraries and components of the operating system. They are essential in solving problems related to the operating system. So, in a way, users should not touch the WinSxS folder because it is there to keep the PC safe and stable.

However, the problem is that the WinSxS folder continues to grow over time and if you have been using your machine for many years, the folder will take up about 40% of your operating system hard drive, which is quite worrying.

So what exactly is going on in that folder? Actually, in addition to the operating system components, Windows also keeps update files in the WinSxS folder. So whenever you get a new update, the files are downloaded and stored, just in case you run into problems in the future and want to roll back to a previous build. Basically, every time you get an update, the files accumulate in that folder, resulting in a staggeringly higher operating system hard drive space.

Clean up the WinSxS folder to free up Windows space
The WinSxS folder continues to grow over time

It would be wrong to say that Microsoft isn’t trying to fix the problem. Currently, Windows 10 comes with an automatic maintenance service that cleans up replaced files after a month. However, users report that it doesn’t work as intended.

Anyway, now you have a clear understanding of the problem and can take steps to reduce the folder size so that it does not hinder system stability.

Use Disk Cleanup to delete old updates from the SxS folder

1. First open the Disk Cleanup tool by typing disk cleanup into the Search box on the Start Menu or on the Taskbar and then pressing Enter. On the search results list, click Disk Cleanup.

Clean up the WinSxS folder to free up Windows space

2. On the Disk Cleanup tool window, click the Cleanup system files button.

Clean up the WinSxS folder to free up Windows space

3. Check Windows Update Cleanup.

Clean up the WinSxS folder to free up Windows space

4. Finally click OK and you're done.

Use Command Prompt to delete the SxS folder

If you want to see how much free space the SxS folder is taking up, you can use Command Prompt.

1. Open Command Prompt as Admin. To do this, type cmd in the Search box on the Start Menu or the Search box on the Taskbar. In the search results list, right-click Command Prompt and select Run as administrator.

Or else, right-click the Start button in the bottom left corner of the screen, select Command Prompt (Admin).

Clean up the WinSxS folder to free up Windows space

2. On the Command Prompt window, type the command below and press Enter:

Dism.exe /online /Cleanup-Image /StartComponentCleanup

Clean up the WinSxS folder to free up Windows space

Wait a few minutes for the DISM tool to analyze the folder. Once completed, you will see details about how much space the SxS folder is taking up.

3. To delete the SxS folder, enter the following command into the Command Propmt window:

Dism.exe /online /Cleanup-Image /StartComponentCleanup

Alternatively, you can use another command to uninstall Windows Updates and service packs to free up space. Use the following command:

Dism.exe /online /Cleanup-Image /StartComponentCleanup

The execution of the command depends on the system and the size of the file you delete.

Delete the WinSxS folder using the StartComponentCleanup task

The StartComponentCleanup task was created in Windows 8 to automatically clean up components on a regular basis, when the system is not in use. This task is set to run automatically when triggered by the operating system. When running automatically, the task will wait at least 30 days after an updated component is installed, before uninstalling previous versions of that component.

If you choose to run this task, it will time out for 1 hour and may not completely clean up all files.

The StartComponentCleanup task can also be started from Command Prompt with admin privileges:

schtasks.exe /Run /TN "\Microsoft\Windows\Servicing\StartComponentCleanup"

Win1. Press the + keys Rto open Run , type taskchd.msc into Run and press OK to open Task Scheduler .

2. Navigate to and open the folder below in the left panel of Task Scheduler:

Task Scheduler Library\Microsoft\Windows\Servicing

3. In Servicing in the middle, select the StartComponentCleanup task and click Run in Selected Item on the right.

Clean up the WinSxS folder to free up Windows space
Select the StartComponentCleanup task and click Run under Selected Item on the right.

4. The StartComponentCleanup task will run until it completes (this may take some time).

Clean up the WinSxS folder to free up Windows space
The StartComponentCleanup task will run until it completes.

Delete the WinSxS folder using /StartComponentCleanup and /ResetBase with the Dism command

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

All current service packs and updates cannot be uninstalled after this command is completed. This will not block future service packs or updates from being uninstalled.

1. Open Command Prompt with admin rights .

2. Type the command below into Command Prompt and press Enter.

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

3. When finished, you can close Command Prompt if you want. This may take a while to complete.

Clean up the WinSxS folder to free up Windows space
Delete the WinSxS folder using /StartComponentCleanup and /ResetBase with the Dism command

Delete WinSxS folder using /SPSupersed with Dism command

To reduce the amount of space used by a service pack, use the /SPSuperseded parameter of Dism.exe on a running instance of Windows 10 to remove any backup components required for uninstalling the service pack. A service pack is a collection of cumulative updates for a specific release of Windows.

This option will most likely never be needed for Windows 10, as service packs are no longer used for Windows 10.

The service pack cannot be uninstalled after this command completes.

1. Open Command Prompt with admin rights.

2. Type the command below into Command Prompt and press Enter.

Dism.exe /online /Cleanup-Image /SPSuperseded

3. When finished, you can close Command Prompt if you want. This may take a while to complete.

Clean up the WinSxS folder to free up Windows space
Delete WinSxS folder using /SPSupersed with Dism command

See more articles below:

Good luck!

Tags: #System
Sign up and earn $1000 a day ⋙

Leave a Comment

How to Backup and Restore Microsoft Defender Windows 11

How to Backup and Restore Microsoft Defender Windows 11

You can back up and restore your Microsoft Defender settings on a new computer or troubleshoot any issues you may have with the application.

The methods and customizations in this article will help speed up your Windows 10 like the wind.

The methods and customizations in this article will help speed up your Windows 10 like the wind.

Do you want to speed up Windows 10, improve Windows 10 speed or speed up Windows 10 startup? All ways to speed up Windows 10 are in this article, please read and apply to make your Windows 10 computer run faster!

What is PING? How to test PING?

What is PING? How to test PING?

In the article below, we invite you to learn some simple examples of the PING command on Windows!

How to Open and Use MSConfig on Windows 10

How to Open and Use MSConfig on Windows 10

MSConfig is a versatile tool that is great for managing the startup process on your computer. It can also be used for more than just troubleshooting performance and stability issues.

6 Ways to Run Software with Administrator Rights in Windows

6 Ways to Run Software with Administrator Rights in Windows

Running some programs with administrator rights is often necessary for full functionality, especially for system tools or file editing and settings software.

How to fix BSOD Memory Management error

How to fix BSOD Memory Management error

Have you ever encountered the Windows Memory Management blue screen of death error? This common Windows Stop Code is annoying, but there are some simple fixes for Windows Memory Management errors.

Most people dont use these hidden features in Windows Security.

Most people dont use these hidden features in Windows Security.

Windows Security does more than just protect against basic viruses. It protects against phishing, blocks ransomware, and prevents malicious apps from running. However, these features aren't easy to spot—they're hidden behind layers of menus.

Follow these 7 steps to keep Windows 11 from slowing down again!

Follow these 7 steps to keep Windows 11 from slowing down again!

From deleting temporary files to updating software, there are many simple and effective ways to keep your computer running smoothly like new.

Heres how to create a virtual hard drive (Virtual Hard Disk) on Windows 10

Heres how to create a virtual hard drive (Virtual Hard Disk) on Windows 10

Basically, a Virtual Hard Disk (VHD) is a file format that contains structures that are “exactly” identical to the structure of a hard drive.

Why is there a lock icon on the drive and how to remove it?

Why is there a lock icon on the drive and how to remove it?

Wondering why there is a lock icon on a drive in File Explorer? This article explains what it is and how to remove the lock icon from a drive in Windows 10.

How to use SpeedFan to check CPU temperature and computer fan speed

How to use SpeedFan to check CPU temperature and computer fan speed

SpeedFan tool checks your computer's temperature, CPU usage, and fan speed so you can cool it down.

10 Great Windows Features That Many People Dont Use

10 Great Windows Features That Many People Dont Use

From killing frozen apps right on the taskbar to automatically locking your computer when you walk away, there are plenty of tools you'll wish you'd discovered sooner.

3 Tools You Need to Remove Windows 11 Tracking

3 Tools You Need to Remove Windows 11 Tracking

Don't completely trust the default settings when it comes to privacy. Windows 11 is no exception, as it often oversteps its bounds when it comes to data collection.

How to download Windows 10, download Windows 10 ISO file from Microsoft

How to download Windows 10, download Windows 10 ISO file from Microsoft

When downloading Windows 10 from Microsoft, you will download Windows 10 as an ISO file. From this Windows 10 ISO file, you can use it to create a bootable USB, a Windows installation USB, or a computer ghost. Let's see how to download Windows 10!

How to Backup and Restore Microsoft Defender Windows 11

How to Backup and Restore Microsoft Defender Windows 11

You can back up and restore your Microsoft Defender settings on a new computer or troubleshoot any issues you may have with the application.

Clean up the WinSxS folder to free up Windows space

Clean up the WinSxS folder to free up Windows space

Windows uses a system folder called WinSxS to store Windows installation files. However, these files take up a lot of space on the system drive. Therefore, you should delete these folders and files.

The methods and customizations in this article will help speed up your Windows 10 like the wind.

The methods and customizations in this article will help speed up your Windows 10 like the wind.

Do you want to speed up Windows 10, improve Windows 10 speed or speed up Windows 10 startup? All ways to speed up Windows 10 are in this article, please read and apply to make your Windows 10 computer run faster!

What is PING? How to test PING?

What is PING? How to test PING?

In the article below, we invite you to learn some simple examples of the PING command on Windows!

How to Open and Use MSConfig on Windows 10

How to Open and Use MSConfig on Windows 10

MSConfig is a versatile tool that is great for managing the startup process on your computer. It can also be used for more than just troubleshooting performance and stability issues.

6 Ways to Run Software with Administrator Rights in Windows

6 Ways to Run Software with Administrator Rights in Windows

Running some programs with administrator rights is often necessary for full functionality, especially for system tools or file editing and settings software.

How to fix BSOD Memory Management error

How to fix BSOD Memory Management error

Have you ever encountered the Windows Memory Management blue screen of death error? This common Windows Stop Code is annoying, but there are some simple fixes for Windows Memory Management errors.

Most people dont use these hidden features in Windows Security.

Most people dont use these hidden features in Windows Security.

Windows Security does more than just protect against basic viruses. It protects against phishing, blocks ransomware, and prevents malicious apps from running. However, these features aren't easy to spot—they're hidden behind layers of menus.

Follow these 7 steps to keep Windows 11 from slowing down again!

Follow these 7 steps to keep Windows 11 from slowing down again!

From deleting temporary files to updating software, there are many simple and effective ways to keep your computer running smoothly like new.

Heres how to create a virtual hard drive (Virtual Hard Disk) on Windows 10

Heres how to create a virtual hard drive (Virtual Hard Disk) on Windows 10

Basically, a Virtual Hard Disk (VHD) is a file format that contains structures that are “exactly” identical to the structure of a hard drive.

Why is there a lock icon on the drive and how to remove it?

Why is there a lock icon on the drive and how to remove it?

Wondering why there is a lock icon on a drive in File Explorer? This article explains what it is and how to remove the lock icon from a drive in Windows 10.

How to use SpeedFan to check CPU temperature and computer fan speed

How to use SpeedFan to check CPU temperature and computer fan speed

SpeedFan tool checks your computer's temperature, CPU usage, and fan speed so you can cool it down.

10 Great Windows Features That Many People Dont Use

10 Great Windows Features That Many People Dont Use

From killing frozen apps right on the taskbar to automatically locking your computer when you walk away, there are plenty of tools you'll wish you'd discovered sooner.

3 Tools You Need to Remove Windows 11 Tracking

3 Tools You Need to Remove Windows 11 Tracking

Don't completely trust the default settings when it comes to privacy. Windows 11 is no exception, as it often oversteps its bounds when it comes to data collection.

How to download Windows 10, download Windows 10 ISO file from Microsoft

How to download Windows 10, download Windows 10 ISO file from Microsoft

When downloading Windows 10 from Microsoft, you will download Windows 10 as an ISO file. From this Windows 10 ISO file, you can use it to create a bootable USB, a Windows installation USB, or a computer ghost. Let's see how to download Windows 10!