A laptop displays a stylized system repair and cleanup interface with progress bars, warning icons, and a terminal window.
When your C: drive is nearly full and you've already emptied Downloads, cleared the Recycle Bin and removed apps you don't use, the space often turns out to be inside the Windows folder itself. A new first-person guide from Digvijay Kumar at MakeUseOf describes this on a Windows 11 PC. Disk Cleanup and Storage Sense said there was nothing left to remove. Two built-in DISM commands then found, and freed, about 10.5GB of old update backups.

The method is real, and Microsoft documents it. Most of the useful detail is in reading the numbers correctly and knowing which switch not to add.

A laptop displays a stylized system repair and cleanup interface with progress bars, warning icons, and a terminal window. The folder that looks bigger than it is​

The folder in question is C:\Windows\WinSxS, the Windows component store. Microsoft's documentation says it holds the components that make up Windows, and that older versions are kept so you can roll back changes or repair corrupted files.

Kumar says File Explorer reported WinSxS at 28.15GB. That number overstates the folder, and Microsoft explains why. Many files in WinSxS are NTFS hard links: one physical file that also appears in places like System32. Explorer doesn't account for hard links when it adds up a folder, so it counts the same data more than once. The Properties dialog is not a reliable measure for this folder.

Summary: Don't trust File Explorer's size for WinSxS. Use DISM to see how much space it really takes.

Step 1: Measure before you delete anything​

Open Command Prompt as administrator (or an elevated Windows Terminal) and run:

Dism.exe /Online /Cleanup-Image /AnalyzeComponentStore

According to Microsoft's Learn page on finding the actual size of WinSxS, the report shows:

Report lineWhat it tells you
Windows Explorer Reported SizeThe inflated figure, ignoring hard links
Actual Size of Component StoreReal disk use, with hard links counted once
Shared with WindowsFiles Windows actively uses. Included in actual size, but not overhead
Backups and Disabled FeaturesComponents kept in case newer ones fail, plus optional features. This is overhead
Cache and Temporary DataInternal servicing cache. This is overhead
Date of Last CleanupWhen the last cleanup finished
Number of Reclaimable PackagesSuperseded packages that cleanup can remove
Component Store Cleanup RecommendedYes or No

The most useful tip from Microsoft is this: the overhead you could actually reclaim is roughly Backups and Disabled Features plus Cache and Temporary Data. In Microsoft's own example, a store that looks like 4.98GB has only about 507MB of overhead. A big folder doesn't mean big savings.

Kumar's numbers were further from normal. DISM reported an actual size of 24.80GB: 8.36GB shared with Windows, 16.44GB in backups and disabled features, 3.69KB of cache, and 9 reclaimable packages. Using Microsoft's formula, about 16.4GB of that store was overhead, which is why cleanup was worth running.

Summary: Run the analysis first. If cleanup is recommended and the backups figure is large, keep going. If not, your missing space is probably somewhere else.

Why the scheduled cleanup didn't catch it​

Windows already runs this cleanup on a schedule. Kumar noticed his report showed a cleanup from the week before, yet nine packages were still reclaimable. Microsoft's documentation explains the gap. The StartComponentCleanup task lives at Task Scheduler Library\Microsoft\Windows\Servicing\StartComponentCleanup and runs when the system is idle. When it runs automatically, it waits at least 30 days after an updated component is installed before removing the old version. It also has a one-hour timeout and may not finish.

Kumar thinks a PC that updates often or rarely sits idle may never catch up. That's a reasonable guess from one machine, not something Microsoft says happens generally. What Microsoft does document is the 30-day wait and the one-hour limit, and those alone can leave reclaimable packages behind.

You can also start the scheduled task by hand from an elevated prompt:

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

That runs the conservative version, with the same timeout.

Step 2: Run the standard cleanup​

This is the command most people should use:

Dism.exe /Online /Cleanup-Image /StartComponentCleanup

Microsoft says that on Windows 10 or later, it gives you similar results to running the StartComponentCleanup task in Task Scheduler, except previous versions of updated components will be immediately deleted (without a 30 day grace period) and you will not have a 1-hour timeout limitation.

One correction to a common claim: this command does not keep every rollback option. The Mole guide makes the point that plain /StartComponentCleanup deletes previous component versions immediately, so those specific updates lose their rollback path. Kumar's article says rollback "stays intact." It's more accurate to say the standard command is the cautious option. It removes superseded versions without the extra, documented loss that comes with /ResetBase.

What success looks like​

When DISM finishes, it should report that the operation completed successfully. Then run AnalyzeComponentStore again and compare the two reports. Kumar's before and after:

MetricBeforeAfter
Actual size24.80GB14.30GB
Backups and Disabled Features16.44GB6.00GB
Reclaimable packages92

He says the 10.50GB showed up as free space right away, and the whole job took about fifteen minutes. These are figures from one PC. How long it takes and how much you get back depend on what's in your store, and a recently cleaned machine may gain almost nothing.

If it stops partway​

Kumar's first attempt stopped at 61% with Error 1223. He reran the command and it worked. In Windows, 1223 is the generic "operation canceled" error code. His theory that another servicing process got in the way is plausible, but Microsoft's documentation doesn't confirm it. Some sensible steps if it happens to you:

  1. Make sure Windows Update isn't installing anything, then retry from an elevated prompt.
  2. Restart if updates are waiting on a reboot, then try again.
  3. If it keeps failing, check the DISM log. The Ctrl+Alt+Nod guide notes that details are in %WINDIR%\Logs\Dism\dism.log.
  4. For other errors that point to a damaged store, the same guide suggests running /CheckHealth, /ScanHealth and then /RestoreHealth before trying cleanup again.

Summary: The standard cleanup skips the 30-day wait and the timeout. Measure afterward to see what you actually got back. Retrying is sensible, but it isn't guaranteed to fix the problem.

The /ResetBase trade-off​

If 6GB of leftover backups seems like a lot, you'll see guides recommend this:

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

Microsoft says this removes all superseded versions of every component in the component store. Its warning is specific: no update package installed so far can be uninstalled after you run it, although packages you install later can still be removed.

In practice, if a cumulative update you already have turns out to cause problems, you can no longer uninstall it. Kumar mentions driver problems, blue screens and app conflicts as the kind of trouble where you'd want that option. He also says older System Restore points might stop working. Microsoft's cleanup documentation doesn't mention that effect, so treat it as the author's caution rather than documented behavior.

Some guides go further. One recent tutorial recommends running the standard cleanup and then /ResetBase as a "two-stage" routine for maximum space. For a daily-use PC, that's aggressive advice. /ResetBase makes the most sense in Kumar's example: preparing a machine for deployment or imaging, where a fresh install has nothing to roll back. On a work laptop that's still getting monthly patches, giving up the ability to uninstall them for a few extra gigabytes is a poor trade.

Summary: Use /ResetBase only on purpose, such as image preparation or a machine whose current patches you're confident are stable. Don't make it part of routine cleanup.

What not to do​

Never delete files from WinSxS by hand. Microsoft's warning is blunt: deleting files from WinSxS, or the whole folder, can damage the system so badly that the PC won't boot and can't be updated. Some important system files exist only there. Third-party "WinSxS cleaners" that delete files directly aren't worth the risk.

Microsoft also strongly advises against disabling the automatic component cleanup, even if you plan to run DISM yourself. The scheduled task is your safety net between manual cleanups.

Is it worth doing?​

For most Windows 10 and Windows 11 users, here's how to think about it:

  • Worth checking: PCs with small SSDs, machines that have built up a year or more of cumulative updates, and systems where Disk Cleanup and Storage Sense have nothing left to offer.
  • Probably not worth it: Recently installed systems, or any machine where AnalyzeComponentStore shows few or no reclaimable packages.
  • Option without the command line: Microsoft notes that Disk Cleanup's system-files mode has an update-cleanup option that also shrinks the component store.

Kumar's main point holds up: the analysis report alone is useful. It splits the component store into the part Windows needs and the part that's just backups, which neither Disk Cleanup nor Storage Sense shows you. Run the analysis, read the backups figure and the cleanup recommendation, and use the standard cleanup only if the report suggests it.

 

References

  1. I ran one built-in Windows command and wiped 10GB of dead update junk MakeUseOf 2026-11-23T18:31:16+00:00
  2. Is the WinSxS Folder Really That Big, and Can You Clean It? · Mole mole.fit
  3. Clean Up the WinSxS Folder | Microsoft Learn learn.microsoft.com