How to Clean Up the WinSxS Folder in Windows 7, 8.1, 10, and 11

·
6 min read

Help Desk Geek is reader-supported. We may earn a commission when you buy through links on our site. Learn more.

The C:\Windows\WinSxS folder can show 10 GB or more in File Explorer, but that number is misleading, and manually deleting files from it can break Windows Update and future servicing. The methods below safely reclaim the real wasted space, from a two-click Disk Cleanup run to a more aggressive DISM reset.

What Is WinSxS?

WinSxS (short for Windows Side by Side) is Windows’ component store, the folder Windows uses to manage updates, install or uninstall roles and features, and roll back changes. It holds multiple versions of DLLs, drivers, and manifests so Windows can safely replace or restore system components during servicing.

The folder almost always looks larger than it really is. File Explorer counts hard links multiple times, a single file stored once on disk can appear in several folders simultaneously, so a 10 GB WinSxS reading might represent only 2–3 GB of unique data. The cleanup methods below remove superseded components: old file versions replaced by newer updates that are no longer needed for rollback.

⚠️ Never delete files from WinSxS manually. Doing so can corrupt Windows Update, break sfc /scannow, and leave Windows unable to install future updates. Use only the supported tools below.

MethodWorks onDifficultyRemoves rollback?
Disk Cleanup (Fix #1)Windows 7 SP1, 8.1, 10, 11EasyNo
Storage Sense (Fix #2)Windows 10, 11EasyOptional
DISM /StartComponentCleanup (Fix #3)Windows 8.1, 10, 11MediumNo (30-day grace)
DISM /ResetBase (Fix #4)Windows 8.1, 10, 11MediumYes, permanent
Remove Windows Features (Fix #5)Windows 7, 8.1, 10, 11MediumPartial

Fix #1: Run Disk Cleanup with Windows Update Cleanup

Disk Cleanup is the safest and simplest option. It works on Windows 7 SP1, 8.1, 10, and 11 without touching the command line.

  1. Press Windows + R, type cleanmgr, and press Enter.
  2. Select your system drive (usually C:) and click OK.
  3. After the initial scan finishes, click Clean up system files.
Disk Cleanup dialog on Windows 11 with the "Clean up system files" button highlighted at the bottom of the dialog
  1. Disk Cleanup rescans with elevated privileges. When the list reloads, check Windows Update Cleanup.
  2. If present, also check Previous Windows installation(s) and Temporary Windows installation files.
  3. Click OK, then Delete Files to confirm.
Disk Cleanup on Windows 11 showing "Windows Update Cleanup" and "Previous Windows installation(s)" checkboxes checked in the

This typically frees several gigabytes on systems that have been running for a while or recently received a major Windows feature update.

Windows 7 note: Windows 7 reached end of extended support in January 2020 and no longer receives security updates. Disk Cleanup still works on Windows 7 SP1, but upgrading is strongly recommended if your hardware supports it — keep in mind Windows 10 itself reached end of support on October 14, 2025, so Windows 11 is the only option still receiving free security updates.

Fix #2: Use Storage Sense (Windows 10 and 11)

Storage Sense is the modern alternative to Disk Cleanup built into Settings. It removes old update and installation files using the same underlying servicing logic, without requiring a command prompt or the legacy Disk Cleanup tool.

  1. Go to Settings > System > Storage.
  2. Click Storage Sense to open its configuration page.
Windows 11 Settings > System > Storage page showing the Storage Sense toggle switch and "Configure Storage Sense or run it
  1. Toggle Storage Sense on if it isn’t already.
  2. If available, enable Delete previous versions of Windows.
  3. Scroll to the bottom of the page and click Run Storage Sense now.
Windows 11 Storage Sense configuration page showing cleanup schedule dropdown set to "Every month" and the "Run Storage

Fix #3: Run DISM /StartComponentCleanup (Windows 8.1, 10, and 11)

The DISM command gives you more precise control over component store cleanup. It removes superseded component versions while preserving a 30-day grace period so you can still uninstall recently installed updates if something breaks afterward.

  1. Click Start, search for Command Prompt, right-click it, and select Run as administrator.
  2. Run this command:
DISM.exe /Online /Cleanup-Image /StartComponentCleanup
Elevated Command Prompt on Windows 11 showing DISM.exe /Online /Cleanup-Image /StartComponentCleanup running with "The
  1. Wait for completion; it can take several minutes on systems with large update histories.
  2. Restart your PC.

If you’d rather not use a command prompt, you can trigger the same operation through Task Scheduler:

  1. Press Windows + R, type taskschd.msc, and press Enter.
  2. Navigate to Task Scheduler Library > Microsoft > Windows > Servicing.
  3. Right-click StartComponentCleanup and choose Run.
Task Scheduler on Windows 11 with the navigation tree expanded to show Task Scheduler Library > Microsoft > Windows >

Fix #4: Use DISM /ResetBase to Remove All Rollback Files

Adding /ResetBase removes all superseded component versions, including the rollback data for every currently installed update. This gets you the most disk space back, but it’s a one-way door.

⚠️ Warning: After running /ResetBase, you cannot uninstall any currently installed Windows updates or service packs. Only use this on a system you’ve confirmed is stable and fully up to date.

  1. Open Command Prompt as administrator (see Fix #3, step 1).
  2. Run this command:
DISM.exe /Online /Cleanup-Image /StartComponentCleanup /ResetBase
Previous capture showed the plain DISM /Online /Cleanup-Image /StartComponentCleanup command (duplicating a different step
  1. Wait for completion, then restart your PC.

Windows 7 SP1 only: To remove Service Pack backup files and permanently commit SP1 (it cannot be uninstalled afterward), run this command instead:

DISM /Online /Cleanup-Image /SPSuperseded

This frees several gigabytes on systems where SP1 was recently installed, but the trade-off is the same: SP1 becomes permanent and cannot be removed.

Fix #5: Remove Unused Windows Features

Disabling built-in Windows features you don’t use removes their component files from the store. You can do this through a GUI or the command line.

Using the GUI:

  1. Press Windows + R, type optionalfeatures, and press Enter.
  2. Uncheck any features you don’t need, then click OK. Windows will prompt you to restart.
Turn Windows features on or off dialog on Windows 11 showing a scrollable list of optional features with checkboxes in

Using DISM (command line):

  1. Open Command Prompt as administrator.
  2. Run this command to list all features and their current state:
DISM.exe /Online /English /Get-Features /Format:Table
  1. To disable and permanently remove a feature, run the command below, replacing <FeatureName> with the exact name from the list:
DISM.exe /Online /Disable-Feature /Featurename:<FeatureName> /Remove
Elevated Command Prompt on Windows 11 displaying the tabular output of DISM /Get-Features /Format:Table, showing two columns

The /Remove flag permanently strips the feature’s payload from the component store. To re-enable that feature later, Windows will need to download it from Windows Update or ask for installation media.

When the Fixes Don’t Work

If DISM returns an error like “The component store has been corrupted,” cleanup isn’t your immediate problem, the store needs repair first. Run DISM /Online /Cleanup-Image /RestoreHealth to let Windows download and replace damaged files from Windows Update, then attempt the cleanup commands again. If that also fails because Windows Update itself is broken, you’re dealing with a deeper system integrity issue that goes beyond standard WinSxS maintenance and may require a repair install.

Conclusion

Fix #1, Disk Cleanup with Windows Update Cleanup checked, is the right starting point for most people: no command line, no rollback trade-offs, and typically several gigabytes freed in a few clicks. If you’re comfortable at an elevated command prompt and need to squeeze out every bit of space, Fix #4 (/ResetBase) delivers the biggest gains, just go in knowing you’re permanently giving up the ability to uninstall current updates. Fix #3 (/StartComponentCleanup without /ResetBase) is the balanced middle ground: meaningful cleanup while the 30-day update uninstall window stays intact.