Clear Cache Explorer: How to Fix File Explorer Lag
In this article
Clearing the File Explorer cache removes temporary data and stored thumbnails that Windows uses to load folders faster. When this cache becomes corrupted or excessively large, it can lead to slow folder loading times, incorrect file icons, or the "Not Responding" error. By resetting these caches, you force Windows to rebuild the index and refresh the visual representation of your files, which typically resolves navigation lag and display glitches.
What You'll Need
- A computer running Windows 10 or Windows 11.
- Administrative privileges to access system folders and Disk Cleanup tools.
- A few minutes of downtime, as Explorer may restart during the process.
Step-by-Step
- Open Disk Cleanup: Press the Windows key on your keyboard, type "Disk Cleanup" into the search bar, and press Enter. This is the safest way to handle system caches as it prevents the accidental deletion of critical OS files.
- Select the System Drive: If prompted to select a drive, choose the (C:) drive, which is where the Windows operating system and the File Explorer cache are typically stored. Click OK.
- Target the Thumbnails: In the list of "Files to delete," locate the checkbox labeled "Thumbnails." This specific cache stores the small preview images of your photos and videos. If these are corrupted, you will see generic icons instead of previews. Check this box.
- Target Temporary Files: Also check the box for "Temporary files." While not exclusively for Explorer, these files often contain cached data from the shell and other system processes that affect navigation speed.
- Execute the Cleanup: Click OK and then confirm by clicking "Delete Files." Windows will now purge the cached thumbnail database and temporary storage.
- Clear the Quick Access History: Open File Explorer (Windows Key + E). Click the three dots (ellipsis) in the top menu (Windows 11) or the "View" tab and select "Options" (Windows 10). In the General tab, look for the "Privacy" section at the bottom. Click the "Clear" button next to "Clear File Explorer history." This removes the cached list of recently accessed folders and files.
- Manually Clear the Icon Cache (Advanced): If icons are still appearing incorrectly, you must delete the
IconCache.dbfile. Open a Command Prompt as Administrator. Typetaskkill /f /im explorer.exeand press Enter. This will make your desktop disappear; do not panic. - Navigate to the Local AppData: In the same Command Prompt window, type
cd /d %userprofile%\AppData\Localand press Enter. - Delete the Icon Database: Type
attrib -h IconCache.dbto remove the hidden attribute, then typedel IconCache.dbto delete the file. - Restart Explorer: Type
explorer.exeand press Enter. Your desktop and taskbar will reappear, and Windows will begin generating a fresh, clean icon cache.
Common Mistakes
One of the most frequent errors is deleting folders within the AppData directory without knowing exactly what they do. Users often attempt to "clear cache" by deleting everything in the Local or Roaming folders, which can lead to the loss of application settings, saved game data, and browser profiles. Always stick to the specific IconCache.db file or use the built-in Disk Cleanup tool.
Another common mistake is forgetting to terminate the explorer.exe process before attempting to delete the icon cache file manually. Because File Explorer is constantly running in the background, it keeps a "lock" on the IconCache.db file. If you try to delete it while Explorer is active, Windows will display an error message stating that the file is in use by another program. You must kill the process first to release the lock.
Some users also confuse the browser cache (Chrome, Edge) with the Explorer cache. While both are called "cache," clearing your web history will have zero effect on how your local folders and files load. Ensure you are using the system tools rather than browser settings to fix folder lag.
Tips
To prevent the cache from bloating in the future, consider disabling the "Show recently used files" and "Show frequently used folders" options in the File Explorer Options menu. This reduces the amount of tracking data Windows has to write to the cache every time you open a folder.
If you have a massive library of high-resolution images or 4K videos, the thumbnail cache can grow very large. If you notice that your C: drive is running low on space, running Disk Cleanup once a month is a good habit. Additionally, if you use an SSD, the impact of a large cache is minimal, but on older HDD (Hard Disk Drive) systems, a corrupted cache can make the computer feel significantly slower.
For those who frequently deal with corrupted thumbnails, changing the view setting to "List" or "Details" instead of "Large Icons" can bypass the cache entirely and speed up the loading of folders containing thousands of files.
Troubleshooting
If you have cleared the cache but folders are still loading slowly (showing the green loading bar at the top), the issue may not be the cache, but rather the folder optimization settings. Right-click the slow folder, select Properties, go to the Customize tab, and change "Optimize this folder for:" to "General items." Click "Also apply this template to all subfolders" and hit OK. This stops Windows from trying to scan every file for metadata (like artist or album) before displaying the list.
If the IconCache.db file refuses to delete even after killing explorer.exe, restart your computer in Safe Mode. Safe Mode loads a minimal set of drivers and processes, which prevents third-party shell extensions (like cloud storage icons or antivirus overlays) from locking the cache file. Once in Safe Mode, repeat the deletion process and then restart normally.
In cases where the "Not Responding" error persists, check for third-party software that integrates with the right-click context menu. Sometimes a corrupted shell extension from an old program causes Explorer to hang while it tries to load a cache for a menu item that no longer exists. Using a tool like ShellExView can help you identify and disable these problematic extensions.
Frequently Asked Questions
Will clearing the Explorer cache delete my actual files?
No. Clearing the cache only removes temporary index files, thumbnails, and history. Your documents, photos, and videos remain untouched; Windows simply recreates the preview images the next time you open the folder.
How often should I clear my File Explorer cache?
There is no need to do this on a schedule. You should only clear the cache if you notice visual glitches (like white icons), slow folder loading, or if you are running critically low on disk space.
Why do my thumbnails take a long time to reappear after clearing?
Since you deleted the stored previews, Windows must read every single file in a folder to generate a new thumbnail. If the folder contains thousands of images, it will take a few moments for the icons to populate as you scroll.
Does clearing the cache fix the "Working on it..." message?
Yes, in many cases. The "Working on it..." message often appears when the index or cache is corrupted, forcing Windows to struggle with the file list. Clearing the cache and optimizing the folder for "General items" usually fixes this.
Is it safe to use third-party "PC Cleaner" software for this?
While some are safe, many are unnecessary. Windows has built-in tools like Disk Cleanup and Storage Sense that perform these tasks without the risk of installing adware or accidentally deleting important system registries.