Start with Disk Cleanup. It can remove Windows Update Cleanup and other superseded component-store files, but it cannot uninstall a still-registered feature-on-demand package; if the feature still appears in Windows Features or Settings, switch to DISM. Leaving the package behind wastes space and leaves the job unfinished. This guide shows the exact check in Disk Cleanup, the cutoff for DISM, and the safest cleanup order on Windows 10 and 11.

Why feature-removal cleanup matters

Windows feature-on-demand packages are optional components that can install on demand. When you remove one, Windows may keep superseded component-store files so it can service updates and preserve rollback paths. That is normal. The goal is to remove only the leftovers that are truly unneeded, without damaging the WinSxS component store.

WinSxS is part of that component store. Windows can reduce its size with built-in tools, but Microsoft warns not to delete WinSxS manually because that can severely damage the system. The right move is to check whether you have a superseded cleanup item, a still-registered feature, or a previous Windows installation folder such as Windows.old.

What you'll need

  • Administrative access for Disk Cleanup’s system-file scan or for an elevated DISM command.
  • Windows 10 or Windows 11.
  • A few minutes while the scan runs.
  • Command Prompt or Windows Terminal if you need DISM.
  • Enough free space to let cleanup finish without interruption.

How do you clean orphaned packages with Disk Cleanup?

Windows search results for Disk Cleanup are open on the screen
Open the built-in cleanup tool from Start, Run, or a command line.

Start with Disk Cleanup on the machine that still has the leftover files. It is a built-in Windows tool that can delete temporary files, Recycle Bin contents, Windows Update Cleanup items, and other supported system files. Use it when the feature has already been removed and only superseded cleanup data remains.

  1. Open Disk Cleanup. Launch cleanmgr.exe from Start, Run, or a command line. Choose the system drive, usually C:, when prompted so the scan targets the component store on that installation.
  2. Reveal system-file options. Select Clean up system files. That reopens the scan with elevated cleanup categories, including Windows Update Cleanup and other items that ordinary cleanup does not expose.
  3. Review the feature-related items. Check Windows Update Cleanup and any other supported temporary or old update files. Leave feature packages alone if they still appear in Windows Features or Settings; that means the package is still registered, not orphaned.
  4. Confirm the cleanup. Click OK and let Windows finish. Reopen Disk Cleanup if you need to verify that the same superseded items no longer appear.

Say your PC removed an optional language component and Disk Cleanup shows Windows Update Cleanup plus several gigabytes of old update files. That is the classic case for Disk Cleanup first. If the language pack still appears in Optional features, stop there and move to DISM instead.

When should you use DISM instead?

Use DISM when the feature is no longer installed, but the component store still needs servicing cleanup. DISM can run StartComponentCleanup on Windows 10 or later from an elevated command line. It reaches the component store directly, which makes it the better follow-up when Disk Cleanup does not clear enough space.

  1. Open an elevated shell. Run Command Prompt or Windows Terminal as administrator.
  2. Run the cleanup command. Enter Dism /Online /Cleanup-Image /StartComponentCleanup. This removes previous versions immediately and avoids the automatic task’s 1 hour timeout.
  3. Check whether space changed. If the folder still holds more superseded data than expected, rerun Disk Cleanup afterward to catch supported items such as Windows.old or old update files.

A common first-timer mistake is using DISM before checking whether the package is still registered. That can make the cleanup path harder to interpret. If the feature still appears in Windows’ own feature list, the safer move is to remove the feature cleanly first, then return to component-store cleanup.

Should you use ResetBase?

Only use Dism /Online /Cleanup-Image /StartComponentCleanup /ResetBase when you are prepared to give up rollback for existing update packages. /ResetBase removes all superseded versions of every component, and after that, existing update packages cannot be uninstalled. It is a final space-saving move, not a routine cleanup step.

What changes in Windows 11 cleanup?

Windows 11 often points you to Settings rather than the old Disk Cleanup entry. Storage Sense and Cleanup recommendations can handle many space-saving tasks, and in some builds they replace the classic button in the UI. That does not change the cleanup logic: supported system-file cleanup still differs from servicing cleanup.

  1. Open the storage page. Go to Settings > System > Storage and look for Temporary files, Cleanup recommendations, or Storage Sense.
  2. Use the classic tool if present. Search for Disk Cleanup or run cleanmgr.exe directly. On some Windows 11 systems, the shortcut is still available even when the Settings path is the main entry point.
  3. Escalate only when needed. If the leftover is tied to a serviced component-store change, use elevated DISM instead of assuming Storage Sense will remove it.

Suppose Windows 11 hides the old cleanup button and only shows Temporary files. That is fine for cache and update residue, but not every servicing artifact. If the storage page does not remove enough, DISM is the next step, not repeated clicking in Settings.

What you can and cannot remove

Windows.old may appear in Disk Cleanup after a major upgrade. Remove it only when rollback is no longer needed, because it is the previous Windows installation folder. Disk Cleanup can also remove temporary files and old update files, but it does not remove every component-store file.

StartComponentCleanup runs automatically when the system is not in use. Microsoft’s servicing task waits at least 30 days before uninstalling previous versions, and the automatic run has a 1 hour timeout. DISM can do that same cleanup on a running installation immediately, which is why it is the better next step when timing matters. (Microsoft Learn)

Feature-removal cleanup matrix

Cleanup symptom Where to check Whether Disk Cleanup can remove it When DISM is required Rollback risk Expected result after cleanup
Windows Update Cleanup remains after feature removal Disk Cleanup after Clean up system files Yes If the component store still holds superseded versions after Disk Cleanup Low for Disk Cleanup alone Supported old update files are removed and space is reclaimed
The feature still appears in Windows Features or Settings Settings > Apps > Optional features or Windows Features No Yes, after the feature is properly removed and the store still needs servicing cleanup Medium if you rush into /ResetBase The package is unregistered first, then servicing cleanup can finish
WinSxS keeps growing after several updates Component-store servicing state Only partly Dism /Online /Cleanup-Image /StartComponentCleanup Low Previous versions are removed immediately
Windows.old appears after a major upgrade Disk Cleanup Yes Usually no High if rollback is still needed Previous installation files are removed and space returns
You want maximum space recovery and accept the tradeoff Elevated DISM command line No Dism /Online /Cleanup-Image /StartComponentCleanup /ResetBase High All superseded versions are removed, and update uninstall becomes unavailable for existing packages

Common mistakes

  • Deleting WinSxS manually. Do not do this. Use built-in cleanup tools only.
  • Using Disk Cleanup on a still-installed feature. If the feature still shows up in Windows Features or Settings, remove the feature first.
  • Running /ResetBase too early. It removes rollback ability for existing update packages.
  • Assuming Storage Sense is the same as Disk Cleanup. It is a different cleanup path, even if some options overlap.

The safest order is simple: confirm the feature is truly gone, run Disk Cleanup for supported items, then use DISM only if the component store still needs servicing cleanup. That sequence avoids needless rollback loss and keeps the cleanup tied to the right tool.

Keep reading

Frequently asked questions

How do I clean orphaned Windows feature-on-demand packages with Disk Cleanup?

Open cleanmgr.exe, select the system drive, then choose Clean up system files. Check Windows Update Cleanup and other supported system-file items. If the feature still appears in Windows Features or Settings, Disk Cleanup is the wrong tool for that part of the removal.

Why is Windows feature removal leaving cleanup files behind?

Windows often keeps superseded component-store data so servicing can continue safely. That is normal after removing optional components or applying updates. The leftover files usually belong in the component store, not in the feature list, so the next step is often cleanup of superseded versions rather than another uninstall attempt.

What does Disk Cleanup remove from the Windows component store?

It can remove supported cleanup items such as Windows Update Cleanup, temporary files, Recycle Bin contents, and sometimes Windows.old after a major upgrade. It does not remove every WinSxS file, and it should not be treated as a manual replacement for component-store servicing.

Can I delete WinSxS files manually after uninstalling a Windows feature?

No. Microsoft warns not to delete WinSxS manually because it can severely damage the system. Use built-in tools such as Disk Cleanup, StartComponentCleanup, or DISM instead. Those tools know which files are superseded and which ones Windows still needs for servicing.

How do I run Disk Cleanup for system files in Windows 10 or 11?

Open cleanmgr.exe, choose the system drive, then click Clean up system files. In Windows 11, you may also find Settings > System > Storage > Temporary files or Cleanup recommendations. Use the classic tool when you need the Windows Update Cleanup category.

What is the safest way to free space after removing Windows features?

Start with Disk Cleanup for supported leftovers, then check whether the feature still appears in Windows’ feature list. If the component store still needs work, run Dism /Online /Cleanup-Image /StartComponentCleanup. Reserve /ResetBase for cases where you accept losing uninstall ability for existing update packages.

Does DISM do more than Disk Cleanup for component cleanup?

Yes. Dism /Online /Cleanup-Image /StartComponentCleanup removes previous versions immediately and avoids the automatic task’s 1 hour timeout. Disk Cleanup handles supported file categories in a simpler UI, but DISM is the stronger servicing tool when component-store cleanup is the real problem.

Why is the Disk Cleanup option missing or redirected in Windows 11?

Windows 11 may point you to Settings > System > Storage with Storage Sense and Cleanup recommendations instead of the classic tool. Search for cleanmgr.exe if you need the old interface. If the tool is gone from the menu, the executable can still be the fastest route.