You ticked Windows Update Cleanup in Disk Cleanup, pressed OK, and the progress bar stopped moving. Ten minutes later it is still sitting there. It looks frozen, and it is tempting to pull the plug.
Usually it is not frozen. This one item does far more work than everything else in the list, and it is known for being slow. Here is why, how to tell slow from stuck, and two ways to get the same space back without waiting on that progress bar.
Why this one item is so slow
Most items in Disk Cleanup are folders of throwaway files: temp files, thumbnails, the Recycle Bin. Deleting them is quick. Windows Update Cleanup is different. It works on the component store, the C:\Windows\WinSxS folder where Windows keeps the pieces it is made of, including older versions of parts that updates have replaced.
Cleaning that store is not a plain delete. Windows has to work out which old versions nothing depends on any more, remove them properly, and compress some of what is left. On a slow or nearly full drive, or right after a big update, that can take a long time. People on Microsoft's own forums report it running for an hour or more after a Windows 10 update before it finished.
Is it stuck, or just slow?
Open Task Manager (Ctrl + Shift + Esc) and look at the Disk column while the cleanup runs. If the disk is busy, Windows is still working. Give it time. An hour is not unusual on an older PC with a hard drive.
If the disk has been quiet for a long stretch and nothing has changed, it may really be stuck. In that case use the Cancel button in Disk Cleanup rather than force-closing it or switching the PC off. It is working on system files, so give it the chance to stop cleanly.
Option 1: let Windows do it for you
You do not have to run this cleanup at all. Windows has a scheduled task called StartComponentCleanup that tidies the component store on its own when the PC is not in use. Microsoft says that when it runs automatically, it waits at least 30 days after an update before removing the older versions it replaced. That waiting period is deliberate: it keeps the old versions around in case you need to roll an update back.
So if your drive is not desperately short of space, the simplest answer is to untick Windows Update Cleanup and let Windows handle it in the background.
Option 2: run the same cleanup from a command, with progress
If you want the space now and would like to see a progress percentage instead of a frozen bar, run the cleanup with DISM, a tool built into Windows.
- Click Start, type Terminal (or cmd), right-click it and choose Run as administrator.
- Type this and press Enter:
Dism.exe /online /Cleanup-Image /StartComponentCleanup - Wait for The operation completed successfully. It can sit at one percentage for a while; that is normal.
According to Microsoft, this does the same job as the scheduled task, but removes the older versions straight away, without the 30-day grace period. Microsoft also notes that when you start the scheduled task by hand it has a one-hour time limit and may not finish. The DISM command has no such limit.
The extra switch, and what it costs you
You will often see the same command with /ResetBase added on the end. That removes every superseded version of every component, so it can free more space. The price is that you can no longer uninstall any update that is already installed. Future updates can still be uninstalled as normal.
Only use /ResetBase if the PC has been running happily since its last updates. If an update has caused trouble, or you might want to roll one back, leave it off.
What not to do
Do not try to speed things up by deleting files from the WinSxS folder yourself, or by deleting the folder. Microsoft is blunt about this: doing so can damage Windows so badly that the PC will not start and can no longer be updated. Part of the reason the folder looks so big is that many of its files are shared with the rest of Windows through hard links, so File Explorer counts them twice. Its real size is smaller than it appears.
And if the reason you are cleaning up is a Windows Update that will not install for lack of space, Windows Update Cleanup on its own may not free enough. Our guide to Windows Update saying there is not enough disk space goes through the bigger wins in order.
The short version
- Windows Update Cleanup is slow because it is servicing Windows itself, not just deleting files.
- If the disk is busy in Task Manager, it is working. Let it finish.
- You can skip it: Windows cleans the component store on its own about 30 days after updates.
- For progress you can see, run
Dism.exe /online /Cleanup-Image /StartComponentCleanupas administrator. - Add
/ResetBaseonly if you are sure you will not need to uninstall a current update. - Never delete WinSxS by hand.
Source: Microsoft Learn, Clean up the WinSxS folder.