Cache files are temporary files that Windows creates to help your PC, apps, and system features load faster. While they’re useful, these files can build up over time or become outdated, which may lead to problems such as Windows Update errors, app glitches, incorrect thumbnails, or unnecessary storage usage. Clearing the right type of cache can often fix these issues, free up disk space, and allow Windows to create fresh temporary files. In most cases, it’s completely safe because Windows automatically recreates cache files when they’re needed, so your personal files, installed apps, and important settings won’t be affected.
In this guide, you’ll learn how to safely clear cache in Windows 11 and Windows 10, including temporary files, Windows Update cache, Microsoft Store cache, DNS cache, thumbnail cache, and browser cache. We’ll also explain when each method is useful, so you only clear the cache that applies to your situation.
Which Cache Should You Clear?
Cache is temporary data that Windows and apps save to help your computer perform everyday tasks more quickly. Instead of creating the same data every time, Windows reuses cached files to speed things up.
Not all cache files serve the same purpose. If you’re trying to fix a specific problem, clearing the right cache can save time and avoid unnecessary steps.
| If you want to… | Clear this cache |
|---|---|
| Free up storage space | Temporary Files |
| Fix Windows Update problems | Windows Update Cache |
| Resolve Microsoft Store app issues | Microsoft Store Cache |
| Fix website loading or DNS errors | DNS Cache |
| Repair missing or incorrect file thumbnails | Thumbnail Cache |
| Fix website display or sign-in problems | Browser Cache |
| Remove old Windows update delivery files | Delivery Optimization Cache |
Now let’s look at each method step by step.
Method 1: Clear Temporary Files (Recommended)
Temporary files are created by Windows, apps, and installers while performing everyday tasks. Most of these files are no longer needed once they’re used, and removing them is one of the easiest ways to free up storage space and reduce unnecessary clutter on your PC.
Option 1: Use Storage Sense (Recommended)
Storage Sense is Windows’ built-in cleanup tool that safely removes temporary files and can automatically keep your storage tidy.
- Press Windows + I to open Settings.
- Go to System > Storage.
- Click Temporary files.
- Select the items you want to remove (leave Downloads unchecked unless you want to delete its contents).
- Click Remove files.

You can also enable Storage Sense to let Windows automatically clean temporary files in the future.
Option 2: Delete Temporary Files Manually
If you need to remove additional temporary files, you can delete them manually.
- Press Windows + R, type %temp%, and press Enter.
- Press Ctrl + A to select all files.
- Delete the selected files. Skip any files that are currently in use.
- Repeat the process by opening Run again, typing temp, and deleting those files as well.
Note: Windows automatically recreates temporary files when they’re needed, so deleting them won’t harm your system.
Method 2: Clear Windows Update Cache
Windows stores downloaded update files in a cache before installing them. If an update gets stuck, repeatedly fails to install, or shows an error code, clearing the Windows Update cache forces Windows to download a fresh copy of the update files.
Use this method if: Windows Update is stuck, downloads won’t complete, or updates keep failing to install.
Steps to clear the Windows Update cache
- Press Windows + R, type services.msc, and press Enter.
- Find Windows Update, right-click it, and select Stop.
- Open File Explorer and go to:
C:\Windows\SoftwareDistribution\Download - Delete all files and folders inside the Downloads folder.

- Return to the Services window, right-click Windows Update, and select Start.
- Restart your PC, then check for updates again from Settings > Windows Update.
Note: This only removes cached update files. It doesn’t uninstall previously installed Windows updates or delete your personal files.
Method 3: Clear Microsoft Store Cache
The Microsoft Store saves temporary cache files to speed up app downloads and updates. If the Store won’t open, apps won’t download, or updates are stuck, clearing its cache can often resolve the problem without affecting your installed apps.
Use this method if: Microsoft Store won’t open, app downloads fail, or Store updates are stuck.
Steps to clear the Microsoft Store cache
- Press Windows + R to open the Run dialog.
- Type
wsreset.exeand press Enter. - A Command Prompt window will appear briefly. Wait for it to close automatically.
- The Microsoft Store will open once the cache has been cleared.

Note: Running wsreset.exe clears only the Microsoft Store cache. It doesn’t uninstall Store apps, remove your Microsoft account, or delete app data.
Method 4: Clear DNS Cache
Windows stores the IP addresses of recently visited websites in a DNS cache so they load faster the next time you visit them. If a website has changed servers, or you’re getting errors like “This site can’t be reached” or “DNS_PROBE_FINISHED_NXDOMAIN,” clearing the DNS cache forces Windows to look up the latest website address.
Use this method if: Websites won’t load, you’re seeing DNS-related errors, or a website has recently moved to a new server.
Steps to clear the DNS cache
- Press Windows + S, type Command Prompt.
- Right-click Command Prompt and select Run as administrator.
- Type the following command and press Enter:
ipconfig /flushdns - You should see the message:
“Successfully flushed the DNS Resolver Cache.” - Restart your web browser and try opening the website again.

Note: Flushing the DNS cache doesn’t affect your internet connection or delete browser history. Windows automatically creates new DNS cache entries as you browse the web.
Method 5: Clear Browser Cache
Web browsers store cached images, scripts, and other website data to help pages load faster. Over time, this cache can become outdated and cause websites to load incorrectly, display old content, or create sign-in and loading issues.
Use this method if: Websites don’t display correctly, changes on a website aren’t visible, or you’re experiencing browsing or sign-in issues.
Microsoft Edge
- Open Microsoft Edge.
- Press Ctrl + Shift + Delete.
- Set the time range to All time.
- Select Cached images and files.
- Click Clear now.

Google Chrome
- Open Google Chrome.
- Press Ctrl + Shift + Delete.
- Choose All time.
- Check Cached images and files.
- Click Clear data.

Mozilla Firefox
- Open Mozilla Firefox.
- Press Ctrl + Shift + Delete.
- Select Cache.
- Click Clear Now.

Tip: Only clear Cookies if you’re comfortable signing back into websites. Clearing Cached images and files alone won’t log you out of most websites.
Method 6: Clear Thumbnail Cache
Windows stores thumbnail images to display file previews more quickly in File Explorer. If image or video thumbnails are missing, blank, or showing the wrong preview, clearing the thumbnail cache forces Windows to generate new ones.
Use this method if: File thumbnails are missing, appear blank, or display the wrong preview.
Steps to clear the thumbnail cache
- Press Windows + S, search for Disk Cleanup, and open it.
- Select your Windows drive (C:) and click OK.
- Check Thumbnails in the list of files to delete.
- Click OK, then select Delete Files.
- Restart File Explorer or restart your PC if the thumbnails don’t refresh immediately.

Note: The first time you open folders after clearing the thumbnail cache, Windows may take a little longer to recreate thumbnail previews.
Method 7: Clear Delivery Optimization Cache
Windows uses Delivery Optimization to store copies of update files, allowing updates to be shared with other PCs on your local network or over the internet (depending on your settings). After updates are installed, these cached files are no longer needed and can take up several gigabytes of storage.
Use this method if: You recently installed a large Windows update or want to free up disk space.
Steps to clear the Delivery Optimization cache
- Press Windows + I to open Settings.
- Go to System > Storage.
- Click Temporary files.
- Select Delivery Optimization Files.
- Click Remove files.

Note: Deleting Delivery Optimization files doesn’t uninstall Windows updates. It only removes temporary copies of update files that Windows can download again if necessary.
What Happens After You Clear Cache?
After you clear the cache, Windows automatically creates new cache files as you continue using your PC. The first time you open an app, browse a website, or view folders in File Explorer, things may load slightly slower while the cache is rebuilt. This is normal and only temporary.
You don’t need to clear the cache regularly. For most users, doing it only when you’re troubleshooting a problem or running low on storage is enough. If you simply want to keep your PC optimized, enabling Storage Sense can automatically remove temporary files without doing any manual cleanup.
Frequently Asked Questions
Yes. Most cache files are temporary, and Windows recreates them automatically when needed. Clearing the cache won’t delete your personal files or installed apps.
It can help if temporary or corrupted cache files are causing problems or taking up storage. However, clearing the cache isn’t a guaranteed way to improve overall performance.
Most users only need to clear cache when troubleshooting issues or freeing up storage space. Windows also includes Storage Sense, which can automatically remove temporary files.
If you’re unsure, start with Temporary Files using Settings > System > Storage. If you’re experiencing a specific issue, clear the related cache, such as Windows Update, DNS, or Browser Cache.
Usually, Windows might take slightly longer to reopen frequently used apps or websites as the new cache is rebuilt. Performance typically improves after a few reboots.
