User Agents

Web browsers and everyday web tech, explained

How to Delete Cache Files in Windows 10

· 6 min read · Cookies and Cache

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Clearing the cache in Windows 10 frees up disk space, fixes slow performance, and resolves issues with apps or websites that are loading outdated data. This guide walks you through the safest ways to delete temporary files, browser caches, and system caches without breaking anything. You don't need any special tools—just a few minutes and access to your user account.

What You'll Need

  • An administrator account (for some methods, like Disk Cleanup on system files)
  • Close any open programs that you want to clear cache for (especially browsers)
  • About 10–15 minutes of free time

Step-by-Step

  1. Use the built-in Disk Cleanup tool – Press the Windows key, type "Disk Cleanup," and select it from the results. Choose the drive you want to clean (usually C:) and click OK. The tool scans and shows you a list of file types. Check the boxes for "Temporary Internet Files," "Temporary Files," "Thumbnails," and "Recycle Bin" (if you want to empty it). Click OK, then "Delete Files" to confirm.
  2. Run Storage Sense (optional but handy) – Go to Settings > System > Storage. Turn on "Storage Sense" if it's not already on. Click "Configure Storage Sense or run it now." Under "Temporary Files," select how often you want it to run, or click "Clean now" to immediately remove temporary files, including the ones in the Downloads folder if you choose that option.
  3. Clear the Windows Update cache – This is the folder where Windows stores downloaded updates. Open File Explorer and navigate to C:\Windows\SoftwareDistribution\Download. Select all files (Ctrl+A) and delete them. If you get an error that files are in use, stop the Windows Update service first: press Win+R, type services.msc, find "Windows Update," right-click it, and select "Stop." Then delete the files, and restart the service (right-click > Start).
  4. Clear your web browser's cache – Each browser has its own method, but the general steps are similar. For Microsoft Edge: click the three-dot menu > Settings > Privacy, search, and services > "Choose what to clear" under "Clear browsing data." Select "Cached images and files" and click "Clear now." For Google Chrome: three-dot menu > More tools > Clear browsing data > check "Cached images and files" > Clear data. For Firefox: menu > Settings > Privacy & Security > "Clear Data" under Cookies and Site Data, then check "Cached Web Content" and click Clear.
  5. Clear the thumbnail cache – Open File Explorer, go to the View tab, and click "Options" (or "Change folder and search options"). In the View tab, check the box for "Always show icons, never thumbnails." This prevents Windows from generating thumbnails, but to delete the existing cache, open Disk Cleanup (step 1) and check "Thumbnails." Run it and the old thumbnails are gone.
  6. Clear the DNS cache (for network issues) – Open Command Prompt as administrator (right-click Start > Windows PowerShell (Admin) or Command Prompt (Admin)). Type ipconfig /flushdns and press Enter. You'll see a confirmation message. This clears the local DNS resolver cache, which can help with website loading problems.
  7. Use the Settings app to clear app caches (for UWP apps) – Go to Settings > Apps > Apps & features. Find the app you want (e.g., Mail, Photos, or a game from the Store). Click on it, select "Advanced options," and then click "Reset" or "Repair." Resetting an app will clear its cache and data, so only do this if you don't mind losing app-specific settings or login info.

Common Mistakes

  • Deleting the entire SoftwareDistribution folder – Only delete the contents of the Download subfolder, not the whole folder. Deleting the parent folder can break Windows Update.
  • Forgetting to close programs – If an app is running, its cache files may be locked and you'll get an error. Close all browsers and other applications before clearing caches.
  • Clearing cookies when you only wanted cache – Cookies store login sessions and site preferences. If you clear them, you'll be logged out of websites. Make sure you only check "Cached images and files" unless you intentionally want to remove cookies.
  • Using third-party "cleaner" tools without knowing what they do – Many system cleaners can remove important files or registry entries. The built-in tools are sufficient and safer.

Tips

  • Schedule automatic cleaning – Turn on Storage Sense and set it to run every day, week, or month. This keeps temporary files from piling up.
  • Use Disk Cleanup for system files – After the first scan, click "Clean up system files" to get more options like "Device driver packages" and "Windows upgrade logs." These can free up significant space.
  • Clear browser cache regularly – If you use a browser daily, clear its cache once a week to prevent slowdowns. Many browsers also have an option to clear cache automatically when you close the browser.
  • Empty the Recycle Bin – When you delete files, they go to the Recycle Bin and still take up space. Right-click the Recycle Bin on your desktop and choose "Empty Recycle Bin" to permanently remove them.
  • Check for large temporary files manually – Use File Explorer to navigate to %temp% (press Win+R, type %temp%, and press Enter). Select all and delete. If some files are in use, skip them and delete the rest.

Troubleshooting

  • "Access denied" when deleting files – This usually means a program is using the file. Close all applications, especially browsers and File Explorer windows. If it persists, restart your PC and try again before any programs launch.
  • Disk Cleanup doesn't show any files to delete – Run it as administrator by right-clicking the Start button and selecting "Command Prompt (Admin)" or "Windows PowerShell (Admin)", then type cleanmgr and press Enter. This gives you access to system files.
  • Storage Sense isn't freeing space – Make sure you've enabled it and selected the right options. Sometimes it only deletes files older than 30 days. Adjust the frequency or click "Clean now" to run it manually.
  • Windows Update cache won't delete – Stop the Windows Update service as described in Step 3. Also stop the "Background Intelligent Transfer Service" (BITS) in the same services.msc window. After deleting the files, restart both services.
  • Browser cache still not clearing – Some browsers have a "Time range" setting. Make sure you select "All time" instead of "Last hour" or "Last 24 hours." Also, close the browser completely before clearing.

Frequently Asked Questions

Is it safe to delete cache files?

Yes, cache files are temporary by design. Deleting them will not harm your system. You may notice that some apps take a little longer to load the first time after clearing, but that's normal.

How much space can I free up?

It depends on how long it's been since you last cleaned. A typical user can free up several gigabytes by clearing temporary files, browser caches, and Windows Update leftovers.

Will clearing the cache delete my passwords?

No, clearing the cache does not affect saved passwords. Passwords are stored separately, usually in a password manager or browser's password vault. However, if you also clear cookies, you may be logged out of websites.

Do I need to restart my PC after clearing the cache?

Not always, but it's a good idea. Some caches, like the thumbnail cache, are rebuilt automatically. A restart ensures that all services start fresh and any locked files are released.

Can I delete the entire Windows folder to free space?

No, never delete the Windows folder. It contains critical system files. Stick to the specific cache folders mentioned in this guide.

Why does Windows keep recreating cache files?

Because they serve a purpose—they speed up loading times. Windows and apps create caches to store frequently used data. Clearing them is like a temporary reset; they will be rebuilt as you use your PC.