Windows Update Cleanup in Windows 11: What Update Leftovers Are Safe to Remove

Flat illustration of a monitor showing a progress ring, with a broom and open bin beside a stack of blank translucent packages

After a few months of updates, a C: drive can lose several gigabytes to files that Windows keeps just in case. Windows Update cleanup is the name people give to removing those leftovers, and it is safe only when you use the tools Windows provides and know what each one takes away. This guide explains what the leftovers are, which ones you can clear through Settings, which you should leave alone, how the DISM clean-up command fits in, and how to check that the space really came back.

Last reviewed: November 21, 2026. Steps were compared with Microsoft documentation; nothing was run on a real PC.

Quick answer

  • Windows keeps update leftovers so it can finish installs, repair itself and share downloads. Most can be cleared through Settings > System > Storage > Temporary files.
  • Cleaning old update files can remove your ability to roll those updates back, so do it only when the PC is stable.
  • Delivery Optimization files are a download cache. Clearing them is safe, and they can be rebuilt.
  • Do not delete the SoftwareDistribution or WinSxS folders by hand. Windows manages them.
  • If updates are failing, cleanup is not the fix. See the Windows Update troubleshooting guide instead.

In this guide

What update leftovers are

Every update leaves some material behind. Part of it is needed while the update installs. Part of it is kept afterwards so Windows can repair itself or let you remove an update. Part of it is a cache that helps other devices or later updates download faster.

Three kinds matter for most people: older versions of update files kept in the component store, the Delivery Optimization cache, and the download folder Windows uses while an update installs. A fourth kind, the folder left by a major upgrade, has its own article: how to delete Windows.old safely, which also explains why deleting it removes your ability to go back to the previous version.

Why Windows keeps them

Windows keeps earlier component versions so that an update can be rolled back and so repairs can find what they need. Microsoft's pages on the component store explain that superseded components are kept for a time and then cleaned up. That is why the space is not freed the moment an update finishes.

What each leftover is and whether it is safe

This table is a general summary, not a Microsoft rule. Menu names differ between builds.

LeftoverWhat it isClean it?How
Windows Update CleanupOlder versions of update files kept for rollbackYes, when the PC is stableSettings > System > Storage > Temporary files
Delivery Optimization FilesA cache of downloaded update and app filesYes, it can be rebuiltTemporary files, or Disk Cleanup
SoftwareDistribution Download folderUpdate files while they download and installLeave it to WindowsNot by hand; use the update troubleshooting guide if updates fail
WinSxS component storeWindows component files, mostly sharedOnly with Microsoft's own toolAnalyse first; see the DISM section below

Safe, only if, never

Use this as a quick filter before you tick or type anything. It separates harmless cleanup from the steps that remove something Windows may still need.

ActionVerdictWhy
Clear Delivery Optimization FilesSafeIt is a download cache that Windows rebuilds
Tick Windows Update Cleanup in Temporary files or Disk CleanupSafe when the PC is stableYou lose the older copies used to roll updates back
Run the DISM StartComponentCleanup commandOnly if the PC is stableIt is Microsoft's own tool, but it removes superseded components
Use the ResetBase switchOnly as a last resortMicrosoft says existing updates can no longer be uninstalled afterwards
Delete SoftwareDistribution or WinSxS in File ExplorerNever as cleanupWindows manages these folders and forcing them can break updates
Delete files in System32 or DriverStoreNeverThese hold files Windows needs to start and run devices

The Windows Update Cleanup option

This is the item most people mean. It removes older versions of update files that Windows no longer needs for normal operation. It usually appears after you have installed a few updates, and it can take a while the first time it runs.

Clean it through Settings

  1. Open Settings > System > Storage, then select Temporary files.

    You should see a list of items with sizes. If it does not help, wait for the scan to finish, which can take a minute.

  2. Tick Windows Update Cleanup if it is listed. Leave Downloads and anything else you want to keep unticked.

    You should see a size next to the item. If it does not help, it may not be present on your build or there may be nothing to clean.

  3. Select Remove files, then restart the PC.

    You should see the item shrink or disappear when you reopen the list. If it does not help, see the section on why leftovers come back.

Clean it through Disk Cleanup

Search for Disk Cleanup, choose the C: drive, select Clean up system files, wait while it rescans. If Windows Update Cleanup is listed, tick it and select OK. Each time the tool runs you may find it quicker the second time, because the first run does the real work. If the tool will not open at all, these fixes for Disk Cleanup that will not open cover the usual workarounds. For how the two tools differ, see Storage Sense vs Disk Cleanup vs PC cleaner. The other built-in routes are covered in our guide to the six built-in Windows 11 tools. For a beginner walkthrough of the tool, see our using the Disk Cleanup tool step by step. To compare what Disk Cleanup and third-party cleaners can remove from update leftovers, see Disk Cleanup against third-party disk cleaners, item by item.

What you give up

Cleaning old update files can remove what Windows needs to roll those updates back. Microsoft's page on uninstalling updates also notes that some updates cannot be uninstalled in any case. If you have just installed an update and the PC is behaving oddly, do not clean yet. See how to uninstall a Windows update first, and back up your files before any cleanup you are unsure about.

Why the first clean-up is slow

If Windows Update Cleanup seems to hang at a low percentage or uses a lot of processor time, that is usually normal. If Windows Modules Installer Worker is the process using the CPU, see TiWorker.exe high CPU or disk use on Windows 11. A Microsoft engineer's blog explains that this Disk Cleanup item does the equivalent of the DISM StartComponentCleanup command, but without the time limit the automatic version has. Windows normally does the same job on a schedule, as part of Windows automatic maintenance, and is cautious about it: it waits before removing components and stops after a limited time.

So the manual version can take longer and work harder than the quiet background one. Leave the PC plugged in and let it finish. If it is still stuck after a long wait with no disk activity, restart and run it once more. Do not end the process from Task Manager during the clean-up if you can avoid it. If the PC also feels slow afterwards, this article explains what Windows is doing after an update.

The DISM command, step by step

DISM is Microsoft's own servicing tool, and it can report whether the component store needs cleaning before you change anything. Use it when the Settings route does not shrink the item, or when you want to see whether cleaning is worth doing. Run it in a Command Prompt or Terminal opened as administrator.

Step 1: analyse the component store

DISM /Online /Cleanup-Image /AnalyzeComponentStore

You should see a report that includes a line saying whether a component store cleanup is recommended. This only reads information and changes nothing. If it says cleanup is not recommended, there is little to gain and you can stop here. If it does not run, check that you opened the window as administrator.

Step 2: clean up superseded components

DISM /Online /Cleanup-Image /StartComponentCleanup

You should see a progress bar and a message that the operation completed successfully. This removes superseded component versions, so you may lose some ability to roll back recent updates. Run it only when the PC is stable and backed up. If it reports an error, restart and try again, then use the SFC and DISM repair guide, which covers repair commands in the safer order. If DISM reports error 0x800f081f or error 87, see our guide to DISM source files not found.

The ResetBase switch is a last resort

Some websites tell you to add the ResetBase switch to the second command. Microsoft's documentation says that after it runs, existing update packages can't be uninstalled, although future ones can. Windows will not let you undo it. It frees more space, but it gives up your rollback safety net for every update installed so far. Do not use it on a PC that is unstable, on a work PC, or just to gain a few hundred megabytes.

Delivery Optimization files

Delivery Optimization is the part of Windows that downloads updates and apps. Microsoft describes it as able to get pieces from other devices as well as from Microsoft, and it keeps a local cache of what it has downloaded. In Temporary files the item is usually called Delivery Optimization Files.

Clearing the cache

Tick Delivery Optimization Files in the same Temporary files list and select Remove files. Nothing you own is lost: Windows downloads the pieces again if it needs them. The cache is a convenience, not a backup.

The sharing setting

Delivery Optimization also has a setting for downloading from other devices. You can find it at Settings > Windows Update > Advanced options > Delivery Optimization. Microsoft says that with Allow downloads from other devices turned off, you still get updates directly from Windows Update and the Microsoft Store, but you will not download from or upload to other PCs. Turning it off does not clear the cache by itself, and it does not stop updates.

The SoftwareDistribution folder

Windows keeps files it downloads for an update in a folder under C:\Windows\SoftwareDistribution. It uses that folder while an update downloads and installs, and it manages it itself.

Many websites tell you to delete the folder by hand. Microsoft's own pages do not recommend it as routine cleanup, and it is rarely worth it as a way to free space. Deleting or renaming it is a repair step for updates that fail, which belongs with the update troubleshooting rather than with cleanup. If your updates are stuck or failing, go to fixing Windows Update that is stuck or failing instead.

Leave the system folders alone

Do not delete WinSxS, System32 or DriverStore by hand. File Explorer shows WinSxS as very large, but much of that is shared with other folders, so its size is not the space you can free. If you want to know why DriverStore grows, why DriverStore keeps growing explains what that folder holds. For a safe way to measure it, see why your C: drive keeps filling up.

If an item will not clear

Sometimes Windows Update Cleanup stays at a small size, for example a few hundred megabytes, after you remove it, or it comes back at once. Try these in order.

  1. Restart the PC, then open Temporary files again and re-run the removal.

    You should see a smaller number than before. If it does not help, go to the next step.

  2. Finish pending updates. A waiting restart can keep components locked.

    You should see no waiting update in Windows Update. If it does not help, go to the next step.

  3. Run the two DISM commands above, analyse first, then StartComponentCleanup.

    You should see a successful completion message. If it does not help, stop; the remainder is probably in use or too small to matter.

Do not force the leftover out with ownership or permission tricks. A small remainder is not a fault. If the removal fails completely or items will not delete, see why Windows 11 temporary files will not delete.

Why leftovers come back

Each new update brings new files. Windows will keep the previous versions again, rebuild the cache as you download, and refill the download folder at the next update. That is normal and not a sign that your cleanup failed.

A large amount of work can also follow an update while the PC settles. See what Windows is doing after an update if the disk or CPU is busy. If the PC feels slow afterwards, this guide covers slow PCs after an update.

Example: a PC that fills up again

A laptop clears 6 GB of update leftovers in March and shows 4 GB of them again by June. Nothing is wrong. Three cumulative updates were installed in between. Cleaning every month is not needed; clean when free space is genuinely low, and let Storage Sense handle routine work (see Storage Sense not working if it does not).

Example: cleaning right after a bad update

A PC starts crashing the day after a monthly update. The owner wants space and cleans the update files first. Now the older copies are gone and rolling back is harder. The safer order is to uninstall or roll back first, confirm the PC is stable, then clean.

How to check the result

Measure the same way before and after. Open File Explorer, select This PC, and write down the free space under Local Disk (C:). Clean, restart, and read it again.

You should see more free space than before. If the number barely changed, open Settings > System > Storage and check whether the Temporary files list shrank. If it shrank but the drive still looks full, something else is using the space: read what fills C: on Windows 11. If the clean-up runs but space does not change at all, see Disk Cleanup not freeing space.

When cleaning will not help

Cleanup frees space. It does not fix a PC that is slow, unstable or failing to update. If Storage Sense is meant to do this for you and does not, see Storage Sense not working. For the wider list of safe ways to free space, use how to free up disk space on Windows 11. For the big picture on what cleaner tools can and cannot do, read the PC cleaner overview for Windows 10 and 11.

If the drive is small for the files you keep, the lasting answer is more storage or moving files elsewhere, not repeated cleanup. Windows also keeps reserved storage and restore points on C:, which our System & reserved storage guide explains.

Frequently asked questions

Safety

Is Windows Update cleanup safe?

It is safe when you use Settings or Disk Cleanup and the PC is stable. The cost is that older update files are removed, so you may not be able to roll those updates back afterwards.

Will cleaning remove my files or apps?

No. The items are system leftovers and caches, not your documents or programs. Review the ticks in the Temporary files list, because it can also list Downloads and the Recycle Bin, which are your own files.

Can I delete the SoftwareDistribution folder to free space?

It is not a recommended cleanup step. Windows manages the folder. Resetting it is a repair for failing updates, covered in the update troubleshooting guide.

Is the ResetBase switch safe?

It works, but Microsoft says existing updates can't be uninstalled afterwards. Treat it as a last resort on a stable PC that you have backed up, never as routine cleanup.

How the tools behave

What are Delivery Optimization files?

They are a cache of update and app downloads that Windows keeps locally. Clearing them is safe, and Windows rebuilds the cache when it needs to.

Does turning off Delivery Optimization clear the cache?

No. The setting only controls whether your PC downloads from or uploads to other devices. Microsoft says you still get updates from Windows Update with it off.

Why is the Windows Update Cleanup option missing?

There may be nothing to clean, or your build may list it under a different name. Menu names vary, so check the Temporary files list and Disk Cleanup's system files view.

Why does Windows Update Cleanup take so long?

The manual version does the equivalent of the DISM StartComponentCleanup command without the time limit the automatic version has, so it can run for a long time and use a lot of processor. Leave the PC plugged in and let it finish.

How much space will I get back?

It depends on how many updates have piled up, so there is no fixed figure. The size shown next to the item in Temporary files is the best guide before you remove it.

How this guide was checked

The steps and cautions were compared with Microsoft pages on Delivery Optimization, freeing up drive space and the component store, and with a Microsoft engineer's blog post about why the Disk Cleanup item is slow. Menu names can differ between builds, and Microsoft's pages do not describe every label. Nothing here was run on a real PC, and no space savings were measured.

For more help, see the PC repair guides on PC Repair Atlas.

Sources