Windows Store Cache Purge Error: Causes & Fixes
The Windows Store cache purge error is a failure of the built-in wsreset.exe tool to clear the Microsoft Store's local cache, usually producing an error code such as 0x80072F8F or 0x80070005, or a message that the cache could not be reset. This is not a sign of a broken PC; it is almost always a permissions, service, or corruption issue that can be resolved with a handful of targeted steps.
What the Windows Store Cache Actually Is
When you open the Microsoft Store, Windows creates a local cache of catalog data, app listings, download manifests, and licensing tokens. This cache lives primarily in the %LOCALAPPDATA%\Packages\Microsoft.WindowsStore_8wekyb3d8bbwe\LocalCache folder and in a few related AppData locations. Its purpose is to speed up navigation and reduce repeated network calls. Over time, the cache can become stale or corrupted, which can cause the Store to hang, fail to download apps, or show incorrect installation states.
Microsoft provides wsreset.exe (Windows Store Reset) as the supported way to clear this cache. Running it closes the Store, deletes the cache contents, and reopens the Store with a fresh state. When that tool fails, the error you see is the cache purge error.
Common Error Codes and What They Mean
The purge error is rarely a single message. The code attached to it points to the underlying cause:
- 0x80072F8F – A TLS/SSL handshake or certificate problem; the reset tool cannot reach the Store service.
- 0x80070005 – Access denied; the account running the reset lacks permission to delete the cache folder.
- 0x80070424 – A required service (often the Windows Update or Store service) is missing or disabled.
- 0x80073CF9 – A package or AppData folder is corrupted or locked by another process.
- “The cache could not be reset” with no code – Usually a locked file or a pending Store update.
Knowing the code narrows the fix. If you only see a generic message, work through the steps below in order.
Step-by-Step Fixes for the Cache Purge Error
Start with the least invasive method and move down the list. Each step addresses a different failure mode.
- Close all Store processes. Open Task Manager, end any Microsoft Store and Store Broker tasks, then run
wsreset.exeagain. A locked cache file is the most common cause of a silent failure. - Run the reset as administrator. Right-click Start, choose Terminal (Admin) or Command Prompt (Admin), type
wsreset.exe, and press Enter. This resolves most 0x80070005 errors. - Check required services. In
services.msc, confirm that Windows Update, Microsoft Store Install Service, and Background Intelligent Transfer Service are running and set to Manual or Automatic. A disabled service produces 0x80070424. - Clear the cache manually. Close the Store, then delete the contents of
%LOCALAPPDATA%\Packages\Microsoft.WindowsStore_8wekyb3d8bbwe\LocalCache. Do not delete the folder itself, only its contents. Restart the Store afterward. - Run the Windows Store Apps troubleshooter. Go to Settings > System > Troubleshoot > Other troubleshooters and run the one for Windows Store Apps. It repairs permissions and re-registers components automatically.
- Re-register the Store package. In an elevated PowerShell window, run
Get-AppxPackage -allusers Microsoft.WindowsStore | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}. This fixes corruption that blocks the reset. - Check date, time, and certificates. An incorrect system clock or an outdated root certificate causes 0x80072F8F. Sync the clock in Settings > Time & Language and install pending Windows updates.
If none of these work, create a new local administrator account and run wsreset.exe there. A successful reset in the new account confirms that the original user profile's AppData permissions are damaged.
Why the Reset Tool Fails When the Store Still Works
A common misconception is that a purge error means the Store is unusable. In practice, the Store can open and even install apps while wsreset.exe fails, because the reset tool requires broader permissions and service access than normal Store operation. The tool runs outside the Store's sandbox and must delete files owned by the system. If your user account is a standard account, if Controlled Folder Access is enabled, or if a third-party antivirus is locking AppData files, the reset fails even though the Store itself is fine.
Another frequent cause is a pending update. If Windows is midway through installing a Store update, the cache files are in use and cannot be deleted. Let updates finish, restart, and try again before assuming corruption.
Manual Cache Clearing vs. wsreset.exe
Manual deletion and wsreset.exe achieve similar results but differ in scope and safety:
- wsreset.exe is supported, closes the Store automatically, and clears the cache plus some licensing state. It is the safer first choice.
- Manual deletion gives you control when the tool fails, but you must close the Store first and avoid deleting the parent folder. It does not reset licensing state.
- Re-registration is heavier: it repairs the app package itself and is appropriate only when corruption is suspected.
Do not use third-party “Store cache cleaners.” They often delete folders outside the supported cache path and can break app licensing, requiring a full reinstall of affected apps.
Safety and What to Back Up
Clearing the Store cache is low risk, but a few precautions matter. Sign out of the Store or note your Microsoft account before resetting, because the reset can require you to sign in again. If you have apps installed from outside the Store, they are unaffected. Back up any locally saved game data tied to Store apps if the app stores saves in its package folder; most modern Store games use cloud saves, but not all.
Never delete the entire Microsoft.WindowsStore_8wekyb3d8bbwe folder. Removing it can prevent the Store from launching and may require reinstalling the Store package through PowerShell. Also avoid running registry cleaners as a fix; they do not address cache permissions and can introduce new problems.
When to Reset Windows or Reinstall the Store
If the purge error persists after all steps, and the Store itself fails to open or install anything, the problem may be deeper than cache. Consider a repair upgrade (an in-place reinstall of Windows that keeps files and apps) before a full reset. A full reset should be a last resort. Reinstalling just the Store package is possible but does not always fix service-level corruption, which is why the repair upgrade is the more reliable next step.
Frequently Asked Questions
Does wsreset.exe delete my installed apps?
No. It clears the Store's local cache and some temporary licensing data. Installed apps, documents, and settings remain. You may need to sign in to the Store again.
Why do I get error 0x80070005 when running wsreset?
That code means access denied. Run the tool from an elevated Command Prompt or Terminal, and check that Controlled Folder Access or antivirus software is not blocking access to the AppData cache folder.
Can I clear the Store cache without wsreset.exe?
Yes. Close the Store, then delete the contents of the LocalCache folder under %LOCALAPPDATA%\Packages\Microsoft.WindowsStore_8wekyb3d8bbwe. Leave the folder itself in place and restart the Store.
Is it safe to delete the Microsoft.WindowsStore folder?
No. Deleting the whole package folder can stop the Store from launching. Only clear the LocalCache subfolder, or use the supported reset tool.
Does the purge error affect Windows Update?
Not directly, but both rely on some of the same services. If Windows Update is also failing, check the Windows Update and Background Intelligent Transfer Service status first, since a disabled service can cause both problems.
Will resetting the Store cache remove my sign-in?
It can. The reset clears some licensing and session data, so you may be asked to sign in with your Microsoft account again. Your purchases and library are tied to the account, not the cache.