Windows Update downloads every update before it installs it, and it doesn’t always clean up afterwards. On a PC that has been updated for a few years, the update caches can hold several gigabytes of installers that will never be used again. A half-downloaded update can also get stuck there and make every new attempt fail.
This guide explains where Windows keeps those files, which ones are safe to remove, and the exact steps to clear them without upsetting Windows Update.
The short answer The Windows Update download cache is
C:\Windows\SoftwareDistribution\Download. It is safe to empty. Stop the Windows Update and BITS services first, delete the contents of the folder, then start both services again. Windows downloads anything it still needs.
What is the Windows Update cache?
“Windows Update cache” can mean three different folders. They hold different files, and each one has its own safe way to clean it.

1. The download cache: SoftwareDistribution\Download
When Windows Update finds an update, it downloads the package into C:\Windows\SoftwareDistribution\Download and installs it from there. Once the update is installed, the package has done its job. Windows removes some of these files on its own, but leftovers from large cumulative and feature updates often stay behind. This folder ranges from a few hundred megabytes to several gigabytes.
This is the folder people mean when they say “clear the Windows Update cache”, and it is the main subject of this guide.
2. The Delivery Optimization cache
Windows can share update pieces between PCs, on your local network and, if you allow it, over the internet. The pieces it keeps for sharing are stored in the Delivery Optimization cache, in C:\Windows\ServiceProfiles\NetworkService\AppData\Local\Microsoft\Windows\DeliveryOptimization\Cache on current versions of Windows. It can reach a few gigabytes.
3. The component store: WinSxS
When an update replaces a system file, Windows keeps the older version in C:\Windows\WinSxS so the update can be uninstalled. Those older versions are cleaned with Disk Cleanup › Windows Update Cleanup or with DISM, never by deleting files from WinSxS by hand.
Why Windows keeps update files at all
Keeping update files around is not a bug. Each cache exists for a reason:
- Reliability. If an installation fails halfway, Windows can retry from the downloaded package instead of downloading gigabytes again.
- Bandwidth. Delivery Optimization lets one PC in a home or office download an update once and share it with the others, which matters on slow or metered connections.
- Rollback. The component store keeps older system files so a bad update can be uninstalled from Settings › Windows Update › Update history › Uninstall updates.
The trouble is that none of these caches has a strict size limit that you can see, and the clean-up Windows does on its own runs on its own schedule. Clearing them by hand is simply doing that work now, at a time you choose.
Signs the cache is causing a problem
Clearing the download cache is also one of the first fixes Microsoft support suggests when Windows Update misbehaves. It is worth trying if you see any of these:
- An update stays at Downloading 0% or Pending install for days.
- The same update fails every time, often with error 0x80070002 or 0x80070003 (“files not found”), which usually points to a damaged or incomplete download.
- Settings › System › Storage shows several gigabytes under Temporary files › Windows Update Cleanup or Delivery Optimization Files that never seem to shrink.
- Your drive is almost full and a feature update refuses to start because there isn’t enough free space.
If the error is 0x80073712 or another message about “missing or damaged components”, the problem is in the component store, not the download cache. In that case, repair Windows first with these two commands in an administrator terminal, then try the update again:
Dism.exe /Online /Cleanup-Image /RestoreHealth
sfc /scannow
DISM /RestoreHealth downloads clean copies of damaged system files from Windows Update, and sfc /scannow checks every protected system file against them. Both take a while, so let them finish.
Before you start
Clearing the cache is a safe, routine fix, but timing matters.
Before you start Open Settings › Windows Update. If it says Restart required or shows an update that is installing, restart your PC and let it finish first. Clearing the cache in the middle of an installation forces Windows to start that update again from the beginning.
You also need an account with administrator rights, because C:\Windows is protected.
Method 1: Clear the download cache with PowerShell (recommended)
This is the fastest and most reliable way. It works on Windows 10 and 11.

-
Right-click the Start button and choose Terminal (Admin) or Windows PowerShell (Admin). Accept the UAC prompt.
-
See how big the cache is now, so you know what you will gain:
$dl = "$env:windir\SoftwareDistribution\Download" "{0:N2} GB" -f ((Get-ChildItem $dl -Recurse -File -Force -ErrorAction SilentlyContinue | Measure-Object Length -Sum).Sum / 1GB) -
Stop the Windows Update service and the Background Intelligent Transfer Service (BITS), which downloads updates:
net stop wuauserv net stop bits -
Delete the contents of the download folder. The folder itself stays:
Remove-Item "$env:windir\SoftwareDistribution\Download\*" -Recurse -Force -
Start both services again:
net start bits net start wuauserv -
Open Settings › Windows Update and select Check for updates. Windows checks again and downloads only what it still needs.
If a file won’t delete Windows sometimes restarts the update service on its own a few seconds after you stop it. Run the
net stopcommands again and delete straight away. A file that still refuses is in use by a pending update, so restart your PC and try again.
Method 2: Clear it with File Explorer
If you prefer not to type commands, you can do the same with the Services app and File Explorer.
- Press Win + R, type
services.mscand press Enter. - Find Windows Update, right-click it and choose Stop. Do the same for Background Intelligent Transfer Service.
- Open File Explorer and go to
C:\Windows\SoftwareDistribution\Download. - Press Ctrl + A to select everything, then Delete. Approve the administrator prompt.
- Go back to Services and start Background Intelligent Transfer Service and Windows Update again.
The files go to the Recycle Bin, so empty it afterwards to get the space back.
Method 3: Clear the Delivery Optimization cache
There are three easy ways to clear the Delivery Optimization cache. None of them needs you to stop any service.
-
Disk Cleanup: run
cleanmgr, select Clean up system files and tick Delivery Optimization Files. Our guide to every Disk Cleanup option explains the other boxes. -
Settings: open Settings › System › Storage › Temporary files and tick Delivery Optimization Files.
-
PowerShell, as administrator:
Delete-DeliveryOptimizationCache -Force
To stop the cache from growing back, open Settings › Windows Update › Advanced options › Delivery Optimization and turn off Allow downloads from other devices. Updates then come only from Microsoft.
Method 4: Clean old update files from the component store
The biggest “update” savings often aren’t in SoftwareDistribution at all, but in WinSxS. There are two safe ways to clean it:
-
Disk Cleanup › Clean up system files › Windows Update Cleanup. This is the easiest option.
-
DISM, in an administrator terminal:
Dism.exe /Online /Cleanup-Image /StartComponentCleanup
Both remove old versions of system files that newer updates have replaced. After that, you can’t uninstall the updates that were cleaned up. Windows also runs this cleanup on its own from time to time with a scheduled task.
Careful Never delete files from
C:\Windows\WinSxSby hand. Many of them are hard links to files Windows is using, and removing them can break Windows Update or Windows itself.
Reset Windows Update when updates keep failing
If an update fails over and over with the same error, a corrupt download is a common cause. Microsoft’s recommended fix is to reset the Windows Update components, which goes one step further than clearing the download cache.
-
Open Terminal (Admin).
-
Stop the update-related services:
net stop wuauserv net stop bits net stop cryptsvc -
Rename the two cache folders, so Windows creates fresh ones. Renaming instead of deleting keeps a copy in case you need it:
Rename-Item "$env:windir\SoftwareDistribution" SoftwareDistribution.old Rename-Item "$env:windir\System32\catroot2" catroot2.old -
Start the services again and restart your PC:
net start cryptsvc net start bits net start wuauserv -
Run Check for updates. Once updates install correctly, you can delete
SoftwareDistribution.oldandcatroot2.old.
This also clears the update history shown in Settings › Windows Update › Update history. Your installed updates are not removed, and the list fills up again as new updates install.
Before you reset anything, try Settings › System › Troubleshoot › Other troubleshooters › Windows Update on Windows 11, or Settings › Update & Security › Troubleshoot on Windows 10. It runs the same checks automatically.
What you should not delete
| Folder | Why to leave it |
|---|---|
C:\Windows\SoftwareDistribution\DataStore (on its own) |
Holds the update database. Only remove it as part of a full reset |
C:\Windows\WinSxS |
The component store. Clean it with Disk Cleanup or DISM only |
C:\Windows\Installer |
Needed to repair and uninstall programs. Deleting files here breaks uninstallers |
C:\$WinREAgent |
Used while Windows installs recovery updates. Leave it until the update finishes |
How much space will you get back?
It varies from PC to PC. These are rough ranges for a PC that has been updated for a year or more, so you know what to expect:
| Cache | Typical size |
|---|---|
SoftwareDistribution\Download |
0.3–4 GB, more after a feature update |
| Delivery Optimization cache | 0.5–6 GB |
| Component store cleanup (Windows Update Cleanup) | 0.5–10 GB |
Check your own numbers first with the PowerShell command in Method 1, or with Settings › System › Storage › Temporary files, which lists Windows Update Cleanup and Delivery Optimization Files with their sizes.
Should you turn off Windows Update to save space?
No. Pausing or blocking updates saves a few gigabytes at most, and it leaves your PC without security fixes. If space is tight, these are better options:
- Pause updates for a week or two in Settings › Windows Update while you free up space, then resume.
- Turn off sharing in Delivery Optimization so the sharing cache stays small.
- Let Storage Sense clean up temporary files on a schedule. Open Settings › System › Storage › Storage Sense and turn it on.
- Free up space elsewhere first. Updates rarely use the most space on a full drive. Browser caches, game shaders, old downloads and developer caches usually use far more.
Clear it in one place with FreeMyDisk
FreeMyDisk is a free, open-source disk cleaner for Windows 10 and 11. Its Windows Update Download Cache rule finds the files in SoftwareDistribution\Download, shows how much space they use, and removes them through its small administrator helper after a Windows UAC prompt. You don’t have to stop services or type commands.
- Windows Update leftovers sit next to 122 other cleanup rules: temporary files, thumbnails, crash dumps, browsers, apps, developer tools and AI caches.
- Each item shows a risk label and the app that owns it, so you know what you are removing.
- Files that are in use are skipped, never forced, so a running update is not interrupted.
- It has no telemetry, no ads and no account.
It is a good fit for the monthly cleanup. For a stuck update, the reset in this guide is still the right tool.
Summary
- The Windows Update download cache is
C:\Windows\SoftwareDistribution\Download, and it is safe to empty. - Stop wuauserv and bits first, delete the folder’s contents, then start them again.
- Clear the Delivery Optimization cache with Disk Cleanup, Settings or
Delete-DeliveryOptimizationCache. - Clean the component store only with Disk Cleanup’s Windows Update Cleanup or DISM, never by hand.
- If updates keep failing, reset the components by renaming
SoftwareDistributionandcatroot2.
Frequently asked questions
Is it safe to delete the SoftwareDistribution folder?
It is safe to empty SoftwareDistribution\Download once the update services are stopped. Windows downloads any update it still needs again. Deleting the whole SoftwareDistribution folder also resets the update history shown in Settings, so do that only when you are repairing a broken Windows Update.
Where is the Windows Update cache?
Downloaded update packages are kept in C:\Windows\SoftwareDistribution\Download. Windows also keeps update pieces for sharing in the Delivery Optimization cache, and old versions of updated system files in the C:\Windows\WinSxS component store.
Will clearing the Windows Update cache delete installed updates?
No. Installed updates are part of Windows and are not stored in the download cache. Clearing it only removes the installer packages, which Windows no longer needs after an update is installed.
Why can't I delete files in SoftwareDistribution?
The Windows Update and BITS services are using them. Stop both services first with net stop wuauserv and net stop bits in an administrator terminal, then delete the files and start the services again.
How often should I clear the Windows Update cache?
There is no need to do it on a schedule. Windows cleans most of it by itself. Clear it when the folder has grown to several gigabytes, after a large feature update, or when an update keeps failing to install.
