guide · static export
PC

Shrink WinSxS With DISM Component Cleanup

The component store keeps superseded update files and can grow to several gigabytes. The supported cleanup removes them without breaking updates.

by@guidox updated:10/31/26 time:35 min level:Intermediate tested on:Windows 11 24H2 works on:Windows 10, Windows 11 tools:Admin terminal
TL;DR

Run **DISM /Online /Cleanup-Image /AnalyzeComponentStore**, then **/StartComponentCleanup**. Use **/ResetBase** only if you accept that installed updates can no longer be uninstalled.

Before you start

Requirements

  • Admin terminal
  • Thirty minutes
Step by step

Instructions

01

Measure before you clean

The analysis reports the actual size, the share of shared components and whether a cleanup is recommended. A store that reports no reclaimable space needs nothing.

DISM /Online /Cleanup-Image /AnalyzeComponentStore
02

Run the standard cleanup first

The cleanup removes superseded components after a grace period and keeps the ability to uninstall recent updates. It is the safe default and takes ten to twenty minutes.

DISM /Online /Cleanup-Image /StartComponentCleanup
tipA scheduled task performs a light version of this automatically. The manual run with the same switch goes further when the store is large.
03

Understand what ResetBase costs

ResetBase removes every superseded version immediately, including the ones needed to roll back an installed update. After it, uninstalling a recent patch is impossible.

DISM /Online /Cleanup-Image /StartComponentCleanup /ResetBase
⚠ warningDo not run ResetBase while an update is pending or the machine is unstable. Fix the problem first, then clean.
04

Measure the result

Run the analysis again. The reported size should drop, and the recommendation should change once the store is compact.

05

Do not delete the folder by hand

The folder uses hard links, and Explorer's reported size is larger than the real usage. Deleting files inside it breaks servicing in ways that need a repair install.

06

Repeat after major upgrades

A feature update adds a full new component set. The store grows by several gigabytes each time, and one cleanup afterwards keeps it bounded.

Troubleshooting

Common issues

The command fails with 0x800f0806

A pending operation. Finish the update and reboot, then retry.

The store grows again quickly

Normal after updates. The analyzer shows what is reclaimable.

An update can no longer be uninstalled

That is the ResetBase trade. A restore point or an image is the fallback.

Explorer shows a huge folder

Hard links count the same file more than once. Trust the DISM report.

FAQ

Frequently asked

Does this speed up Windows?

It frees disk space. The performance effect is small.

Is it safe to run monthly?

The standard cleanup, yes. ResetBase only when you are sure.

How to undo this

The cleanup cannot be undone. A restore point or a system image taken before the ResetBase run is the only way back.

Changelog · 1 entry
  1. 2026-10-31
    First version
Interactive version: checklist, feedback, related guides →

Free · no account needed · tracks your progress