Clear the Delivery Optimization job queue
Nov 27, 2023
This is a quick and dirty method of clearing the Delivery Optimization queue which is useful when needing to clear a stuck job. Note that as we will be completely resetting the service’s “state”, this also has the consequence of clearing Delivery Optimization’s knowledge about its cache.
- Stop the Delivery Optimization service
Get-Service -Name “DoSvc” | Stop-Service -Force
- Delete the Delivery Optimization state files
Remove-Item -Path “C:\Windows\ServiceProfiles\NetworkService\AppData\Local\Microsoft\Windows\DeliveryOptimization\State” -Force -Recurse
- Start the Delivery Optimization service
Get-Service -Name “DoSvc” | Start-Service
- Restart or retry whatever process you were trying to do that got stuck and brought you here