Windows Delivery Optimization Cache: How to Fix and Clear
In this article
Clearing the Windows Delivery Optimization cache removes temporary files used to share updates between computers on your local network or the internet. This process resolves issues where Windows Updates get stuck, frees up significant disk space, and fixes corrupted update files that may cause installation errors. To perform this, you primarily use the built-in Disk Cleanup tool or the Windows Settings menu, ensuring that the system can start a fresh download of necessary update components.
What You'll Need
- A computer running Windows 10 or Windows 11.
- Administrative privileges (Administrator account) to modify system files and run cleanup tools.
- A stable internet connection to re-download any updates that were partially cached.
Step-by-Step
- Open Disk Cleanup: Press the Windows Key, type "Disk Cleanup", and select the application from the search results. If prompted to select a drive, choose the system drive (usually C:).
- Launch as Administrator: Once the Disk Cleanup window opens, click the "Clean up system files" button near the bottom left. You will be prompted for administrator permission; click "Yes". The tool will scan your system again to find advanced system files.
- Select Delivery Optimization Files: In the list of "Files to delete", scroll down until you find "Delivery Optimization Files". Check the box next to this item. You may also check "Windows Update Cleanup" if you are troubleshooting update errors.
- Execute the Cleanup: Click "OK" and then click "Delete Files" to confirm the action. Windows will now purge the cached fragments of updates stored in the Delivery Optimization folder.
- Alternative Method via Settings: If you prefer the modern interface, go to Settings > System > Storage. Click on "Temporary files". Wait for the scan to complete, check the box for "Delivery Optimization Files", and click "Remove files".
- Restart the Windows Update Service: To ensure the fix is applied and the cache is fully reset, press Windows Key + R, type "services.msc", and press Enter. Find "Windows Update" in the list, right-click it, and select "Restart".
- Verify the Fix: Go to Settings > Windows Update and click "Check for updates" to ensure the system can now download and install updates without interference from the old cache.
Common Mistakes
- Deleting the entire SoftwareDistribution folder manually: While some guides suggest deleting the entire C:\Windows\SoftwareDistribution folder, doing so without stopping the Windows Update service first can lead to system errors or permission denials.
- Ignoring the "Clean up system files" button: Many users run Disk Cleanup as a standard user. Delivery Optimization files are system-level files and will not appear in the list unless you click "Clean up system files" and elevate to Administrator.
- Disabling Delivery Optimization entirely: While clearing the cache is helpful, disabling the feature completely can slow down updates on networks with multiple PCs. It is better to clear the cache than to disable the service unless you have very limited bandwidth.
Tips
- Schedule Storage Sense: Enable "Storage Sense" in Windows Settings to automatically clear temporary files, including some update caches, when disk space is low.
- Limit Bandwidth: If Delivery Optimization is consuming too much upload bandwidth, go to Settings > Windows Update > Advanced options > Delivery Optimization and set a limit on how much bandwidth is used for uploading updates to other PCs.
- Local Network Only: To prevent your PC from sharing updates with strangers on the internet, change the Delivery Optimization setting from "Devices on my local network and PCs on the internet" to "Devices on my local network".
Troubleshooting
If the Delivery Optimization files refuse to delete or the error persists, try the following steps:
- Safe Mode: Restart your computer in Safe Mode. This prevents third-party applications from locking the cache files, allowing Disk Cleanup to remove them successfully.
- Command Prompt Force Clear: Open Command Prompt as Administrator and run the following commands one by one:
net stop wuauservnet stop bitsrd /s /q %systemroot%\SoftwareDistribution\Downloadnet start wuauservnet start bits
This manually stops the update services and wipes the download folder. - Run SFC Scan: If the cache is corrupted due to system file errors, run
sfc /scannowin an elevated Command Prompt to repair the underlying OS files.
Frequently Asked Questions
Will clearing the cache delete my installed updates?
No. Clearing the Delivery Optimization cache only removes the temporary installation files used to distribute updates. It does not uninstall any updates already applied to your system.
Is it safe to clear this cache regularly?
Yes, it is completely safe. The only downside is that if you have other PCs on your network, they will have to download updates from Microsoft's servers instead of from your PC.
Why is the Delivery Optimization folder so large?
Windows stores fragments of updates to help other computers on your network update faster. Over time, these fragments accumulate, especially after large feature updates.
Does this fix the "Windows Update Failed" error?
In many cases, yes. If a downloaded update file becomes corrupted, Windows may keep trying to use that corrupted cache. Clearing it forces Windows to download a fresh, healthy copy of the update.
Can I prevent the cache from filling up again?
You cannot stop the cache from existing entirely, but you can limit its impact by turning off the "Allow downloads from other PCs" toggle in the Delivery Optimization settings.