How to Clean Windows Delivery Optimization P2P Cache
Location & Quick Verdict
C:\Windows\ServiceProfiles\NetworkService\AppData\Local\Microsoft\Windows\DeliveryOptimization\Cache
Windows 10 and 11 store peer-to-peer update and Microsoft Store app chunks in the DeliveryOptimization Cache folder to share with other PCs on your network.
How Windows Servicing & Installer Packages Accumulate in Windows Delivery Optimization P2P Cache
Windows Component-Based Servicing (CBS), the Windows Update Agent (wuauserv), and WiX/Burn MSI bootstrapper engines stage compressed cabinet (.cab), express delta (.esd), and superseded side-by-side assemblies inside C:\Windows\ServiceProfiles\NetworkService\AppData\Local\Microsoft\Windows\DeliveryOptimization\Cache. Windows retains many of these payload packages so you can roll back recent cumulative updates or repair installed Visual C++ / .NET runtimes without internet access.
However, once cumulative updates are superseded by newer monthly rollups—or after MSI applications are uninstalled—gigabytes of orphaned payloads remain behind in C:\Windows\ServiceProfiles\NetworkService\AppData\Local\Microsoft\Windows\DeliveryOptimization\Cache. Following the verified cleanup procedure for Windows Delivery Optimization P2P Cache reclaims 2.0 GB – 15.0 GB while preserving active servicing manifests and currently registered uninstaller packages.
# Inspect current disk footprint of Windows Delivery Optimization P2P Cache (Read-Only)
$target = "C:\Windows\ServiceProfiles\NetworkService\AppData\Local\Microsoft\Windows\DeliveryOptimization\Cache"
Get-ChildItem -Path $target -Recurse -Force -ErrorAction SilentlyContinue |
Measure-Object -Property Length -Sum |
Select-Object Count, @{Name="SizeGB";Expression={[math]::Round($_.Sum / 1GB, 2)}}
Manual Cleaning Instructions
- 1 Open Settings > System > Storage > Temporary files.
- 2 Check 'Delivery Optimization Files'.
- 3 Click 'Remove files' at the top.
Note: If Windows alerts that a file is in use or locked by a background process, close the associated task in Task Manager before deleting, or use SWEEPR Cleaner to release locked handles safely.
Sub-Folders & Cache Locations Breakdown for Windows Delivery Optimization P2P Cache
Modern Windows applications and system services split their disk footprint across multiple sub-directories (`Cache_Data`, `Service Worker\CacheStorage`, `Code Cache`, `GPUCache`, and `Crashpad\reports`). Review which sub-folders inside Windows Delivery Optimization P2P Cache are safe to purge and which files remain protected:
| Sub-Folder / Cache Location | Storage Role | Typical Footprint | Deletion Safety |
|---|---|---|---|
| C:\Windows\ServiceProfiles\NetworkService\AppData\Local\Microsoft\Windows\DeliveryOptimization\Cache | Superseded Component Packages & Update Staging Payloads | 2.0 GB – 15.0 GB | 🟢 100% Safe |
| C:\Windows\SoftwareDistribution\Download | Downloaded Windows Update CAB/ESD Installation Packages | 2.0 GB – 16.0 GB | 🟢 100% Safe |
| C:\Windows\WinSxS\Temp\PendingDeletes | Orphaned Servicing Checkpoint Staging Files | 1.0 GB – 9.0 GB | 🟢 100% Safe via DISM |
| Active Windows 11 System32 Binaries & MSI Manifests | Live OS Kernel Files & Active Uninstaller Packages | Protected | 🔒 Protected — Never Touched |
Frequently Asked Questions
Is it safe to delete Windows Delivery Optimization P2P Cache?
Yes, 100% safe. Completely safe to delete. Reclaims gigabytes of SSD space immediately.
How much storage space will cleaning Windows Delivery Optimization P2P Cache free up?
Users typically reclaim 2.0 GB – 15.0 GB on Windows 10 and Windows 11 systems depending on update frequency and active cache retention in C:\Windows\ServiceProfiles\NetworkService\AppData\Local\Microsoft\Windows\DeliveryOptimization\Cache.
Can I simply press Shift+Delete on Windows Delivery Optimization P2P Cache in File Explorer?
Yes, once any associated Windows Update or Delivery Optimization service handles are released, the cached payload files in C:\Windows\ServiceProfiles\NetworkService\AppData\Local\Microsoft\Windows\DeliveryOptimization\Cache can be safely removed.
Where is Windows Delivery Optimization P2P Cache located on Windows 10 and Windows 11?
It is stored at C:\Windows\ServiceProfiles\NetworkService\AppData\Local\Microsoft\Windows\DeliveryOptimization\Cache. You can paste that path directly into the Windows Run dialog (Win + R) or File Explorer address bar to inspect it.
Manual File Explorer vs. 1-Click SWEEPR Cleanup
| Feature | Manual Deletion | SWEEPR Cleaner |
|---|---|---|
| Locked File Handling | Fails on locked processes | Safe background release |
| Accidental Deletion Risk | Moderate (easy to delete wrong folder) | Zero (strict rules & hashes) |
| Safety Undo Rollback | None (Shift+Del is permanent) | 7-Day Automatic Rollback |
| Time Required | 10–20 minutes per app | < 60 seconds across 40+ areas |
Related Windows Cleanup Guides & Hidden Space Hogs
Clean Windows Delivery Optimization P2P Cache Automatically
SWEEPR Cleaner safely clears Windows Delivery Optimization P2P Cache along with 40+ other hidden app folders and leftover files in one click—covering up to 5 devices (Windows, Mac, Android & iOS) with a 7-day undo safety net.