Clear the Windows thumbnail cache to fix broken or generic icons

Purge Windows' thumbnail database to restore correct file and folder previews. Use Storage settings for a safe reset or the terminal method when files are locked.

What the video covers

Reset the thumbnail cache (thumbcache database) used by File Explorer so previews and icons render correctly for files and folders.

Watch the video on YouTube

Step-by-step instructions

  1. Open Storage/Temporary files
    Open Settings and go to the System Storage area. Wait for storage usage to populate, then open Temporary files (the listing that shows deletable temporary items).
  2. Select Thumbnails only
    In the temporary files list, check Thumbnails. Uncheck other categories if you don’t want to remove them.
  3. Remove the files
    Use the Remove files (or equivalent) control to delete the selected temporary items. This clears the cache via the Settings UI.
  4. Use the elevated terminal if Settings fails
    If the Settings method cannot remove the files (files locked by Explorer), open an elevated terminal (run as administrator).
  5. Stop File Explorer
    In the elevated terminal, stop Explorer so the thumbnail database files unlock. Example command: taskkill /f /im explorer.exe. Your taskbar and desktop will temporarily disappear—this is expected.
  6. Delete the thumbnail database files
    Delete the thumbcache database files from your local profile. Example command (run in the elevated terminal): del /f /s /q /a %LocalAppData%\Microsoft\Windows\Explorer\thumbcache_*.db
  7. Restart Explorer
    Restart the shell by running explorer.exe in the terminal. Your desktop and taskbar will return and Explorer will rebuild thumbnails as you browse.
  8. Handle cloud-synced items
    If OneDrive/iCloud files still show broken icons, make those files/folders local (e.g., 'Always keep on this device'), let them sync, then clear the thumbnail cache once more so thumbnails are generated from local content.

Watch the video

Video thumbnail for Clear the Windows thumbnail cache to fix broken or generic icons Play tutorial

Watch on YouTube

Why it matters

Windows stores thumbnails to speed browsing. If the index becomes corrupted or out of sync (for example after large project changes or cloud syncs), thumbnails can appear blank, generic, or incorrect. Clearing the cache forces Explorer to rebuild previews from the actual files.

Check your result

Open File Explorer and verify that thumbnails and file previews now display correctly for the folders or file types that were showing blank/generic icons.

Troubleshooting

If icons still look wrong after clearing the cache: 1) Ensure the affected files are stored locally (for cloud services, use 'always keep on this device' or similar to force local sync), then clear the cache again. 2) Sign out and back into your account or restart Windows. 3) If a specific file type remains generic, confirm it has an associated preview handler or try regenerating the file's thumbnail by opening it once.