User Agents

Web browsers and everyday web tech, explained

Clean Windows 11 Cache: Step-by-Step Guide to Speed Up PC

· 7 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

Cleaning the cache in Windows 11 involves removing temporary files, stored application data, and system logs that accumulate over time. This process achieves a leaner operating system by reclaiming disk space and resolving software glitches caused by corrupted temporary files. By clearing these caches, you can often fix application crashes, improve system responsiveness, and ensure that the latest versions of web pages or software assets are loaded rather than outdated cached versions. To begin, ensure you have saved all open work, as some cache-cleaning processes may require restarting specific applications or the system itself.

What You'll Need

  • A computer running Windows 11.
  • Administrator privileges (required to access system-level folders and run certain cleanup tools).
  • A few minutes of time to allow the system to scan and delete files.

Step-by-Step

  1. Use the Storage Sense Tool: Windows 11 has a built-in automation tool called Storage Sense that handles much of the cache cleaning for you. Open the Start Menu, click on Settings, and navigate to System > Storage. Here, you will see a breakdown of how your space is being used. Click on Temporary files. The system will scan for various types of cache, including Windows Update Cleanup, Thumbnails, and Delivery Optimization Files. Check the boxes for the items you wish to remove—specifically "Temporary files" and "Thumbnails"—and click Remove files.
  2. Clear the Disk Cleanup Utility: For a more traditional deep clean, use the legacy Disk Cleanup tool. Press the Windows Key, type Disk Cleanup, and press Enter. Select the drive you wish to clean (usually C:) and click OK. Once the window opens, click the Clean up system files button; this requires administrator permission and allows the tool to find deeper system caches like old Windows installation files. Check all relevant boxes, including "DirectX Shader Cache" and "Temporary Internet Files," then click OK and confirm the deletion.
  3. Manually Clear the Temp Folder: Some application caches reside in the user-level temporary folder. Press Windows Key + R to open the Run dialog box. Type %temp% and press Enter. This opens the AppData\Local\Temp folder. Select all files by pressing Ctrl + A, then press the Delete key. If a window pops up stating that a file is currently in use, check the box "Do this for all current items" and click Skip. It is normal for some files to be locked because they are being used by active programs.
  4. Flush the DNS Cache: If you are experiencing internet connectivity issues or cannot reach certain websites, clearing the DNS cache is essential. Right-click the Start button and select Terminal (Admin) or Command Prompt (Admin). In the black window, type ipconfig /flushdns and press Enter. You should see a confirmation message stating that the DNS Resolver Cache was successfully flushed.
  5. Clear the Windows Store Cache: The Microsoft Store often caches app data that can lead to download errors or app update failures. Press Windows Key + R again. Type wsreset.exe and press Enter. A blank Command Prompt window will appear. Do not close it; wait for it to close automatically, at which point the Microsoft Store will launch, indicating the cache has been reset.
  6. Clear Browser Caches: While not strictly a Windows OS cache, browser caches take up significant space. For Microsoft Edge, open the browser, click the three dots in the top right, go to Settings > Privacy, search, and services. Under "Clear browsing data," click Choose what to clear. Select "Cached images and files" and set the time range to "All time," then click Clear now.

Common Mistakes

One of the most frequent mistakes users make is deleting files from the System32 folder or other critical directory paths while attempting to "clean" the system. Cache files are temporary, but system files are essential; never delete anything in a folder unless it is specifically designated as a "Temp" or "Cache" folder. Another common error is using third-party "registry cleaners" or "PC boosters." Many of these tools claim to clean the cache but can inadvertently delete critical registry keys or system drivers, leading to OS instability or the dreaded Blue Screen of Death (BSOD). Stick to the built-in Windows tools or manually clearing known temp folders.

Additionally, some users forget to restart their computer after a major cache clear, particularly after using Disk Cleanup on system files. Restarting allows Windows to finalize the removal of locked files and rebuild the necessary indices, ensuring the system operates smoothly. Finally, avoid clearing your browser cache every single day. While it frees up space, the cache is designed to make websites load faster. If you clear it too frequently, you will notice slower page load times as your browser must re-download every image and script from the web.

Tips

To maintain a fast system without manual intervention, enable Storage Sense permanently. In Settings > System > Storage, toggle the Storage Sense switch to "On." You can then click on it to configure the schedule—for example, setting it to run every week or whenever disk space is low. This ensures that the Recycle Bin and temporary files are purged automatically.

For power users, utilizing a batch script can automate the clearing of multiple temp folders. By creating a .bat file with commands like del /s /f /q %temp%\*.*, you can clean your user temp folder with a single double-click. However, this should only be done if you are comfortable with command-line interfaces. Another tip is to monitor your "Delivery Optimization Files." These are files Windows downloads to share updates with other PCs on your local network. If you have a limited data plan or small SSD, clearing these via Disk Cleanup can reclaim several gigabytes of space.

Troubleshooting

If you encounter an error stating "Access Denied" while trying to delete files in the %temp% folder, it is usually because a background process is currently using that file. The solution is to close all open applications and try again. If the file persists, you can boot Windows into Safe Mode, which loads only the minimum required drivers and services, allowing you to delete stubborn temporary files that are normally locked during a standard boot.

In cases where the wsreset.exe command does not open the Microsoft Store or the window hangs indefinitely, you may need to reset the Store app via settings. Go to Settings > Apps > Installed Apps, find Microsoft Store, click the three dots, select Advanced options, and click the Reset button. This performs a more thorough cleanup than the simple cache reset command.

If you find that your computer is actually slowing down after clearing the cache, do not panic. This is often temporary. For instance, after clearing the DirectX Shader Cache, games may experience brief "stuttering" for the first few minutes of gameplay. This happens because the GPU is recreating the shaders in real-time. Once the new cache is built, performance will return to normal and may even improve if the previous cache was corrupted.

Frequently Asked Questions

Will clearing the cache delete my personal files?

No. Cleaning the system cache, temp folders, and DNS cache only removes temporary data used by the OS and applications. It does not touch your documents, photos, or videos. However, clearing browser cache will sign you out of some websites.

How often should I clean my Windows 11 cache?

For most users, once a month is sufficient. If you use your PC for heavy gaming or professional video editing, you may want to clear temporary files more frequently to reclaim disk space.

Is it safe to delete everything in the %temp% folder?

Yes, it is generally safe. Any file that is currently critical to a running program will be locked by Windows and cannot be deleted anyway. You can safely skip those files and delete the rest.

Does clearing the cache improve internet speed?

It does not increase your raw bandwidth, but flushing the DNS cache can resolve "Page Not Found" errors and fix connection issues caused by outdated IP address mappings.

What is the difference between Disk Cleanup and Storage Sense?

Storage Sense is a modern, automated tool that runs in the background based on a schedule. Disk Cleanup is a manual utility that provides more granular control and access to deeper system-level cleanup options.

Why is my cache filling up so quickly?

Certain applications, such as web browsers, Spotify, and Adobe Creative Cloud, generate large amounts of cache to speed up performance. Frequent updates to Windows also leave behind large "cleanup' folders that can be removed via Disk Cleanup.