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

Leave a Comment

Fix Windows Error Code 0xc0000098: Backup ACPI.sys to Prevent Boot Failure

Fix Windows Error Code 0xc0000098: Backup ACPI.sys to Prevent Boot Failure

Error code 0xc0000098 in Windows causes a blue screen error on startup. The ACPI.sys driver is often to blame, especially on unsupported versions of Windows 11 like 23H2 or 22H2 or Windows 10.

Quickly fix Windows 10/8/7 computer error that freezes and cannot exit Safe Mode

Quickly fix Windows 10/8/7 computer error that freezes and cannot exit Safe Mode

In some cases, sometimes you start your computer in Safe Mode and the computer freezes. So how to fix the error in this case, please refer to the article below of WebTech360.

How to fix Snipping Tool keeps showing error

How to fix Snipping Tool keeps showing error

Snipping Tool is a powerful photo and video capture tool on Windows. However, this tool sometimes has some errors, such as constantly displaying on the screen.

How to get the fastest internet connection from your router

How to get the fastest internet connection from your router

Every network has a router to access the Internet, but not everyone knows how to make the router work better. In this article, we will introduce some router tips to help speed up the wireless connection in the network.

Common Mistakes When Performing Internet Speed ​​Tests

Common Mistakes When Performing Internet Speed ​​Tests

If the results seem slower than expected, don't be too quick to blame your ISP - mistakes when performing the test can skew your numbers.

What is QoS? How to use QoS for faster Internet speeds when you need it most

What is QoS? How to use QoS for faster Internet speeds when you need it most

In the article below, we will introduce and guide you to learn about the concept of QoS - Quality of Service on router devices.

Why cant this built-in Credential Manager feature in Windows replace a password manager?

Why cant this built-in Credential Manager feature in Windows replace a password manager?

Windows has a built-in Credential Manager, but it's not what you think it is—and certainly not a replacement for a password manager.

How to install free HEVC codecs on Windows 10 (for H.265 video)

How to install free HEVC codecs on Windows 10 (for H.265 video)

Microsoft charges for its official codecs and doesn't include them in Windows 10. However, you can get them for free without pulling out your credit card and spending $0.99.

Instructions to fix Access Denied error when accessing files or folders on Windows

Instructions to fix Access Denied error when accessing files or folders on Windows

While having trouble accessing files and folders can be frustrating, don't panic—with a few simple tweaks, you can regain access to your system.

How to check if USB Boot has been created successfully?

How to check if USB Boot has been created successfully?

After creating a USB boot to install Windows, users should check the USB boot's performance to see if it was created successfully or not.

4 Types of Windows Data That Are Growing in Size: How to Control Them?

4 Types of Windows Data That Are Growing in Size: How to Control Them?

Although Windows Storage Sense efficiently deletes temporary files, some types of data are permanent and continue to accumulate.

How to turn off background apps in Windows 11, reduce RAM consumption on Win 11

How to turn off background apps in Windows 11, reduce RAM consumption on Win 11

You can turn off Windows 11 background apps to optimize performance, save battery and reduce RAM consumption.

Instructions to fix the error “Network path was not found” in Windows

Instructions to fix the error “Network path was not found” in Windows

When a computer, mobile device, or printer tries to connect to a Microsoft Windows computer over a network, for example, the error message network path was not found — Error 0x80070035 may appear.

How to block Internet connection of Windows 10 software and applications

How to block Internet connection of Windows 10 software and applications

We can block Internet access for any application or software on the computer, while other programs can still access the network. The following article will guide readers on how to disable Internet access for software and applications on Windows.

How to Stay Safe on Windows 10 Until 2030

How to Stay Safe on Windows 10 Until 2030

Instead of paying $30 for a year of security updates, keep Windows 10 safe until 2030 with this simple solution.

How to Fix Windows 11 Clock Out of Sync Error

How to Fix Windows 11 Clock Out of Sync Error

Struggling with the Windows 11 "Clock Out of Sync" error? Discover proven, step-by-step fixes to resolve time synchronization issues, restore accuracy, and keep your PC running smoothly. No tech expertise needed!

Troubleshooting Windows 11 VBS and HVCI Gaming Lag

Troubleshooting Windows 11 VBS and HVCI Gaming Lag

Struggling with gaming lag on Windows 11 due to VBS and HVCI? This comprehensive guide explains what they are, why they cause stuttering, and step-by-step troubleshooting to boost your FPS without compromising security. Get back to seamless gaming today!

How to Use Windows 11 Remote Desktop Connection

How to Use Windows 11 Remote Desktop Connection

Unlock the power of Windows 11 Remote Desktop Connection. This step-by-step guide shows you how to set up and use Remote Desktop for secure, remote access to your PC from anywhere. Perfect for work, troubleshooting, or accessing files on the go.

How to Backup Your Windows 11 System to Cloud

How to Backup Your Windows 11 System to Cloud

Discover step-by-step instructions on how to backup your Windows 11 system to cloud storage. Protect your data effortlessly with OneDrive, Google Drive, and more for peace of mind. Updated for the latest features.

Troubleshooting Windows 11 Antimalware Service Executable

Troubleshooting Windows 11 Antimalware Service Executable

Struggling with Antimalware Service Executable hogging your CPU in Windows 11? Discover proven troubleshooting steps to fix high resource usage, optimize performance, and regain control of your PC. Easy, step-by-step guide for all users.

Troubleshooting Windows 11 Visual Studio Code Lagging

Troubleshooting Windows 11 Visual Studio Code Lagging

Struggling with Visual Studio Code lagging on Windows 11? Discover proven troubleshooting steps to boost performance, optimize settings, and get back to smooth coding. Essential tips for developers.

How to Fix Error Encountered During Windows 11 Update

How to Fix Error Encountered During Windows 11 Update

Struggling with "Error Encountered" during Windows 11 updates? Discover proven, step-by-step fixes to resolve this frustrating issue quickly and get your system updated smoothly. Updated with the latest 2026 patches.

Solving Windows 11 Microsoft Word Not Responding Error

Solving Windows 11 Microsoft Word Not Responding Error

Struggling with Microsoft Word not responding on Windows 11? Discover proven fixes to resolve crashes, freezes, and errors quickly. Step-by-step guide with tips for smooth productivity.

How to Fix Windows 11 RGB Not Syncing After Sleep

How to Fix Windows 11 RGB Not Syncing After Sleep

Struggling with Windows 11 RGB not syncing after sleep? Discover proven fixes to restore seamless lighting control for your gaming setup. Step-by-step guide to solve sync issues quickly and easily.

How to Fix Windows 11 Notepad and Paint Missing Fix

How to Fix Windows 11 Notepad and Paint Missing Fix

Struggling with missing Notepad and Paint in Windows 11? Discover proven, step-by-step fixes to restore these essential apps quickly and easily. No tech expertise needed – get back to seamless editing today!

Troubleshooting Windows 11 Unexpected Kernel Mode Trap

Troubleshooting Windows 11 Unexpected Kernel Mode Trap

Struggling with the Unexpected Kernel Mode Trap error on Windows 11? This comprehensive guide walks you through proven troubleshooting steps to resolve the BSOD quickly and get your PC running smoothly again. Discover causes, fixes, and prevention tips.

Solving Windows 11 Digital License Linking Errors

Solving Windows 11 Digital License Linking Errors

Struggling with Windows 11 digital license linking errors? Discover proven steps to resolve activation issues, reactivate your license, and get back to smooth computing. Expert tips for quick fixes.

How to Reinstall Game Bar on Windows 11 via PowerShell

How to Reinstall Game Bar on Windows 11 via PowerShell

Struggling with Game Bar issues on Windows 11? Learn how to reinstall Game Bar using PowerShell step-by-step. Quick, easy fixes to get back to gaming without hassle.

Troubleshooting Windows 11 Update Error 0x80073712

Troubleshooting Windows 11 Update Error 0x80073712

Struggling with Windows 11 Update Error 0x80073712? Discover proven fixes to resolve this common issue quickly. Step-by-step guide to get your updates running smoothly without frustration.

How to Fix Windows 11 Git Permission Denied Error

How to Fix Windows 11 Git Permission Denied Error

Struggling with the frustrating Windows 11 "Git" Permission Denied Error? Discover proven, step-by-step solutions to fix it fast and get back to coding without hassle. Updated with the latest Git and Windows tweaks for seamless performance.