How to Delete Cache from a Windows Computer
In this article
Deleting cache from your computer frees up storage space, fixes website loading issues, and protects your privacy by removing temporary files stored by your browser and operating system. You'll need administrator access and should close all programs before starting.
What You'll Need
- A Windows 10 or 11 computer with administrator privileges.
- Your web browser(s) open if clearing browser cache.
- A few minutes of time, as the process is quick.
Step-by-Step
- Close All Running Applications: Before clearing any cache, save your work and close all open programs, especially your web browsers and any apps you suspect are storing cache. This prevents files from being locked and ensures the cleanup is thorough.
- Clear Browser Cache (for Google Chrome): Open Chrome, click the three-dot menu in the top-right, and go to Settings > Privacy and security > Clear browsing data. In the pop-up window, set the time range to All time. Ensure Cached images and files is checked. You can uncheck other items like browsing history or cookies if you wish to keep them. Click Clear data.
- Clear Browser Cache (for Microsoft Edge): Open Edge, click the three-dot menu, and go to Settings > Privacy, search, and services. Under Clear browsing data, click Choose what to clear. Set the time range to All time, check Cached images and files, and click Clear now.
- Clear Browser Cache (for Mozilla Firefox): Open Firefox, click the three-line menu, and go to Settings. Select Privacy & Security from the left panel. Scroll down to Cookies and Site Data and click Clear Data.... Check only Cached Web Content and click Clear.
- Clear Windows Temporary Files: Press the Windows key + R to open the Run dialog, type %temp%, and press Enter. This opens your Temp folder. Select all files (Ctrl+A) and delete them (Shift+Delete to bypass Recycle Bin). Some files may be in use and cannot be deleted; skip those.
- Use Disk Cleanup: Type Disk Cleanup in the Windows search bar and open the tool. Select your main drive (usually C:). The tool will calculate space you can free. In the list, ensure Temporary files and Delivery Optimization Files (another type of cache) are checked. You can also check Windows Update Cleanup and System error memory dump files for more space, but these are not standard cache. Click OK and then Delete Files.
- Clear Store App Cache: Some Windows Store apps cache data. Open Settings > System > Storage > Temporary files. Windows will scan. Check the boxes for Windows Update Cleanup, Delivery Optimization Files, and DirectX Shader Cache (if you are comfortable clearing it; games will regenerate it). Click Remove files. Note that app-specific cache for programs like Spotify or Discord is usually cleared within those apps' settings.
- Restart Your Computer: After completing these steps, restart your PC. This ensures any lingering processes that were using cached data are fully refreshed, and your system runs with the cleared cache.
Common Mistakes
A common mistake is confusing cache with cookies or browsing history and accidentally deleting login sessions for websites. When using browser tools, carefully review the checkboxes. Another error is not closing applications before trying to delete the Temp folder contents, leading to "file in use" errors and an incomplete cleanup. Users also sometimes delete the entire Temp folder itself instead of just its contents; you should only delete the files inside the folder, not the folder. Finally, attempting to use third-party "PC cleaner" apps can be risky, as some may delete important system files or install unwanted software; sticking with built-in Windows tools like Disk Cleanup is safer.
Tips
For a more automated approach, you can configure your browser to clear cache every time you close it. In Chrome, go to Settings > Privacy and security > Clear browsing data, then click Advanced and set the time range, then toggle on Clear browsing data on exit and select only "Cached images and files." Schedule a monthly reminder to run Disk Cleanup, which helps maintain system performance. If you are a gamer, be aware that clearing the DirectX Shader Cache may cause minor stuttering in games the next time you launch them, as they rebuild the cache; it's generally safe to leave this unless you are desperately short on space. For specific applications like Discord or Steam, look for a "Clear Cache" button within their Advanced settings menus, as those files are separate from browser and system caches.
Troubleshooting
If you cannot delete files in the %temp% folder because they are "in use," simply skip those files; it's normal for a few active processes to lock them. If Disk Cleanup fails to run or freezes, try running it as an administrator. Search for Disk Cleanup, right-click the result, and select Run as administrator. If a website continues to behave strangely after clearing your browser cache, try a "hard reload" by pressing Ctrl+Shift+R (or Ctrl+F5) on the page, which forces the browser to fetch all fresh files from the web server, ignoring any local data. If you experience significant performance issues or errors after clearing cache, a system restart almost always resolves them. As a last resort, you can use the Windows built-in System File Checker tool by opening Command Prompt as Administrator and typing sfc /scannow, which will repair any corrupted system files that might have been affected, though this is rarely necessary.
Frequently Asked Questions
Is it safe to delete cache from my computer?
Yes, it is generally very safe. Cache files are temporary data meant to be recreated. The worst that usually happens is websites load slightly slower the next time you visit as they rebuild their local cache, or you may need to log in again if you accidentally deleted cookies.
Will clearing cache delete my passwords or saved form data?
No, not if you do it correctly. Passwords and autofill data are typically stored separately from the cache. In browser cleanup dialogs, these are separate checkboxes (often labeled "Passwords" and "Autofill form data"). Just ensure only "Cached images and files" is selected.
How often should I clear my computer's cache?
There's no strict rule. For most users, doing it every few months or when you notice low disk space or browser problems is sufficient. Clearing it too frequently can slightly slow down your initial browsing as everything reloads.
Does clearing cache speed up my computer?
It can, especially if the cache was very large and fragmented. The primary speed benefit is often in browser performance, fixing page loading glitches. For overall system speed, clearing cache has a smaller impact compared to other measures like adding more RAM or using an SSD.
What is the difference between cache and cookies?
Cache stores website resources like images, scripts, and style sheets to make pages load faster on return visits. Cookies are small files that store specific user data like login status, site preferences, and tracking information. They are cleared separately.
I cleared the cache, but my storage space didn't increase much. Why?
Cache is often not the largest consumer of space. Large files like videos, downloads, installed programs, and system restore points take up more room. Use Disk Cleanup's detailed list or Storage Settings to see what's using the most space on your drive.