Clear Cache Win 11: Step-by-Step Guide to Speed Up PC
In this article
Clearing the cache in Windows 11 removes temporary files that the operating system and various applications store to speed up loading times. Over time, these caches can become bloated, corrupted, or outdated, leading to system slowdowns, software glitches, or a lack of available disk space. By purging these files, you refresh the system's temporary storage, force applications to fetch the latest data, and reclaim valuable gigabytes of storage on your SSD or HDD.
What You'll Need
- A computer running Windows 11.
- Administrative privileges (required to clear certain system-level caches).
- A few minutes of time to restart the system if necessary.
Step-by-Step
1. Clear System Temporary Files via Storage Settings
Windows 11 has a built-in tool called Storage Sense that identifies and removes unnecessary files automatically, but you can trigger a manual deep clean for immediate results.
- Click the Start button and select the Settings gear icon.
- Navigate to System in the left sidebar, then click on Storage.
- Wait for the system to calculate the storage usage, then click on Temporary files.
- Review the list of checkboxes. Ensure Temporary files, Thumbnails, and DirectX Shader Cache are selected. Be cautious with the Downloads folder; only check this if you have already backed up files you wish to keep.
- Click the Remove files button at the top of the list and confirm the action.
2. Flush the DNS Cache
The DNS cache stores the IP addresses of websites you visit. If a website changes its IP or the cache becomes corrupted, you may experience connectivity issues.
- Press the Windows Key and type
cmd. - Right-click Command Prompt and select Run as administrator.
- In the black window, type the following command:
ipconfig /flushdns - Press Enter. You should see a message confirming that the DNS Resolver Cache was successfully flushed.
3. Clear the Windows Store Cache
If the Microsoft Store is lagging, failing to download apps, or crashing, clearing its specific cache often resolves the issue.
- Press the Windows Key + R on your keyboard to open the Run dialog box.
- Type
wsreset.exeinto the text box. - Press Enter or click OK.
- A blank Command Prompt window will appear. Do not close it. Wait for it to close automatically, at which point the Microsoft Store app will open, indicating the process is complete.
4. Manually Clear the Temp Folders
Some application files bypass the main settings menu and reside in specific system folders.
- Press Windows Key + R, type
%temp%, and press Enter. This opens the user-specific temporary folder. - Press Ctrl + A to select all files and folders.
- Press the Delete key. If a window pops up saying a file is "in use," check the box Do this for all current items and click Skip.
- Press Windows Key + R again, type
temp(without the percent signs), and press Enter. - Repeat the selection and deletion process for this system-level folder.
5. Clear Browser Cache
While not part of the OS itself, browser caches are the most common cause of "slow" Windows experiences.
- Open your preferred browser (Chrome, Edge, or Firefox).
- Press Ctrl + Shift + Delete on your keyboard. This is a universal shortcut for the "Clear Browsing Data" menu.
- Select a time range (e.g., "All time").
- Check the box for Cached images and files.
- Click Clear data or Clear now.
Common Mistakes
- Deleting the Downloads Folder: In the Storage Settings menu, many users accidentally check the "Downloads" box. This deletes everything in your personal Downloads folder, not just temporary system files.
- Force-Closing the wsreset Window: Closing the blank command prompt window during the Microsoft Store reset can interrupt the process and leave the cache in a corrupted state.
- Using Third-Party "Cleaner" Software: Many free registry cleaners or system optimizers can delete critical system files or change registry keys that lead to OS instability. Stick to the built-in Windows tools.
- Deleting Files in Use: Attempting to force-delete a file that is currently being used by an open program can cause that program to crash or the system to hang. Always choose "Skip" for files in use.
Tips
- Enable Storage Sense: To avoid manual cleaning, go to Settings > System > Storage and toggle Storage Sense to "On." This allows Windows to automatically clear temporary files when disk space is low.
- Restart After Cleaning: After clearing the DirectX Shader Cache or DNS cache, restart your computer to ensure all changes are applied and the system starts with a fresh state.
- Clear Cache Before Updates: If a Windows Update is failing to install, clearing the temporary files and flushing the DNS can sometimes remove the bottleneck preventing the update.
Troubleshooting
If you encounter issues while clearing your cache, try these solutions:
- Permission Denied: If you cannot delete files in the
tempfolder, ensure you are logged in as an Administrator. If the problem persists, try booting into Safe Mode to remove stubborn files. - Command Prompt Errors: If
ipconfig /flushdnsreturns an error, ensure you launched the Command Prompt as an Administrator. A standard user prompt does not have the authority to modify DNS settings. - Store Still Not Working: If
wsreset.exedoes not fix the Microsoft Store, go to Settings > Apps > Installed Apps, find the Microsoft Store, click the three dots, select Advanced options, and click Reset.
Frequently Asked Questions
Will clearing my cache delete my personal documents?
No. Clearing system, DNS, and browser caches only removes temporary data. However, be careful not to select the "Downloads" folder in the Storage settings, as that does contain personal files.
Does clearing the cache make my computer faster?
It can. While cache is meant to speed things up, a bloated or corrupted cache can cause lag. Clearing it frees up disk space and resolves software conflicts, which often results in a snappier experience.
How often should I clear my Windows 11 cache?
For most users, once every few months is sufficient. If you are a power user or a gamer who installs and uninstalls many programs, doing it monthly may be beneficial.
Is it safe to delete everything in the %temp% folder?
Yes, it is safe. These files are designed to be temporary. Windows will not allow you to delete files that are currently necessary for an active process, so you cannot "break" the system by deleting these.
What is the DirectX Shader Cache?
This is a cache of compiled shaders used by your graphics card to render 3D images faster. Clearing it can fix graphical glitches in games, though the first time you launch a game afterward, loading times may be slightly longer as the shaders rebuild.