Home › Knowledgebase › KB-490

How to fix and clear the Windows Delivery Optimization cache to resolve stuck Windows Updates

Summary

This guide helps you troubleshoot and resolve: How to fix and clear the Windows Delivery Optimization cache to resolve stuck Windows Updates. Follow the steps below to fix the issue.

Quick Tip: Need immediate assistance? 💻 Open a Ticket

Common Causes

Windows Delivery Optimisation (DO) is a built-in feature that lets your computer share update files with other PCs on your network or online, reducing Microsoft's bandwidth load. Sometimes the DO cache becomes corrupted or bloated, causing Windows Updates to stall at "Downloading," fail repeatedly, or get stuck at 0%. Clearing the cache forces Windows to re-download the update files cleanly. This guide walks you through the process on Windows 10 and Windows 11.

Quick Fix Steps

  1. Stop the Delivery Optimisation service.
  2. Stop the Windows Update service to prevent file-in-use errors.
  3. Delete the contents of the Delivery Optimisation cache folder.
  4. Restart the Delivery Optimisation service.
  5. Restart the Windows Update service.
  6. Re-run Windows Update.
If you're already comfortable with Windows services, the commands below will stop the Delivery Optimisation service and clear its cache. Open Command Prompt (Admin) or PowerShell (Admin) and run them in order:
net stop DoSvc
net stop wuauserv
del /f /s /q "%SystemDrive%\Windows\ServiceProfiles\LocalService\AppData\Local\Microsoft\Windows\DeliveryOptimization\Cache\*"
net start DoSvc
net start wuauserv

If that resolves your issue, you're done. If not, continue to the detailed instructions below.

Detailed Instructions

Stop the Delivery Optimisation Service

  1. Press Win + R, type services.msc, and press Enter.
  2. Scroll down and double-click Delivery Optimisation (the service name is DoSvc).
  3. Click Stop.
  4. Set the Startup type to Manual for now — you can change it back later.
  5. Click Apply, then OK.

Stop the Windows Update Service

You must stop the Windows Update service before deleting cache files. If you do not, Windows may report that files are in use and prevent you from deleting them.
  1. In the Services window (services.msc), scroll down and double-click Windows Update (the service name is wuauserv).
  2. Click Stop.
  3. Click Apply, then OK.

Delete the Delivery Optimisation Cache

The Delivery Optimisation cache is stored in a hidden system folder. You may need to enable Show hidden files, folders, and drives in File Explorer to access this path:

%SystemDrive%\Windows\ServiceProfiles\LocalService\AppData\Local\Microsoft\Windows\DeliveryOptimization\Cache
  1. Press Win + R, paste the path above, and press Enter.
  2. Press Ctrl + A to select all files and folders inside the Cache folder.
  3. Press Shift + Delete to permanently remove them (skip the Recycle Bin).
  4. If Windows reports any files are in use, return to Services and confirm both the Delivery Optimisation and Windows Update services are stopped, then try again.
Do not delete the DeliveryOptimization folder itself. Only clear the contents of the Cache subfolder.

Restart the Services

  1. Return to Services (services.msc) and double-click Delivery Optimisation.
  2. Set the Startup type back to Manual.
  3. Click Start, then OK.
  4. Double-click Windows Update.
  5. Set the Startup type back to Manual.
  6. Click Start, then OK.

Re-run Windows Update

  1. Open Settings with Win + I.
  2. Navigate to Windows Update.
  3. Click Check for updates.
  4. Allow the download to complete. If the update was previously stuck, it should now download from scratch.

Delivery Optimisation Settings to Review

Windows lets you control how updates are shared. If updates keep failing on a metered or slow connection, restrict sharing:

  1. Open Settings > Windows Update > Advanced options > Delivery Optimisation.
  2. Select Allow downloads from other PCs: Off to use Microsoft servers only.
  3. Alternatively, choose Local network only if you trust your network.
Keeping your system up to date is one of the best defences against security threats. If you continue to experience update failures after clearing the cache, you can Open a Ticket for further assistance.

Still Having Issues?

Need more help? If the issue persists after trying these steps, please open a support ticket and our team will assist you.

💻 Open a Ticket