Evidence Wipe
Windows history

How to Clear the Thumbnail Cache in Windows (and Why It Matters for Privacy)

Clear the Windows thumbnail cache with Disk Cleanup, Settings or by deleting thumbcache files, and stop previews of deleted photos lingering.

Updated 5 minute read The Evidence Wipe team

The quickest way to clear the thumbnail cache in Windows 10 or 11 is Disk Cleanup: type "Disk Cleanup" in the Start menu, choose your C: drive, tick Thumbnails and click OK. You can also do it from Settings > System > Storage > Temporary files, or delete the thumbcache files by hand. Windows rebuilds thumbnails automatically the next time you open a folder, so clearing the cache is safe.

People clear the thumbnail cache for two reasons. The first is fixing problems: wrong, blank or out-of-date previews of photos, videos and documents. The second is privacy: the cache can keep small preview images of pictures and documents even after the original files have been deleted. This guide covers both, with every method and how to stop thumbnails being cached at all.

What the thumbnail cache is

When File Explorer shows a folder in Medium, Large or Extra large icon view, it creates a small preview image for each photo, video, PDF and some other files. To avoid redrawing them every time, Windows saves these previews in database files in your user profile:

%LocalAppData%\Microsoft\Windows\Explorer

The files are named thumbcache_32.db, thumbcache_256.db, thumbcache_1280.db and similar, one per size. The same folder holds iconcache_*.db files for program icons. Each Windows user account has its own cache.

Why the thumbnail cache matters for privacy

Deleting a photo does not automatically remove its preview from the cache. Until the cache is cleared or that entry is overwritten, a small copy of the image can remain inside the cache file, and there are tools that can read these files and display the images. This is one reason the thumbnail cache is a standard place investigators look. If you have deleted private photos or scanned documents (ID cards, bank letters, medical papers), clearing the thumbnail cache removes those leftover previews. For more on why deleted data lingers, see can deleted files be recovered.

Method 1: Disk Cleanup

  1. Click Start, type Disk Cleanup and open it.
  2. Choose drive C: (the drive Windows is installed on) and click OK.
  3. In the list, tick Thumbnails. Untick anything else you do not want removed.
  4. Click OK, then Delete Files.

If some thumbnails survive, it is usually because File Explorer had the cache files open. Close all File Explorer windows and run it again, or use Method 3.

Method 2: Settings (Storage)

  1. Open Settings > System > Storage.
  2. Click Temporary files (in Windows 11 you may need to open Show more categories first).
  3. Wait for the scan, then tick Thumbnails and untick anything you want to keep, such as Downloads.
  4. Click Remove files.
Check the Downloads and Recycle Bin boxes carefully in this list. Leaving them ticked deletes your Downloads folder contents and empties the Recycle Bin.

Method 3: Delete the cache files manually

This is the most thorough option and helps when the other methods leave thumbnails behind. File Explorer locks the cache while it runs, so you stop it first.

  1. Save your work and close all File Explorer windows.
  2. Click Start, type cmd, and open Command Prompt.
  3. Stop Explorer (your taskbar will disappear for a moment): taskkill /f /im explorer.exe
  4. Delete the thumbnail cache files: del /f /q /a "%LocalAppData%\Microsoft\Windows\Explorer\thumbcache_*.db"
  5. Start Explorer again: start explorer.exe

If a file reports "Access is denied" or "in use", another program (often a photo app or a preview handler) still has it open. Restart the PC, then repeat the steps before opening any folders. Some thumbcache files may be recreated at once, empty, which is normal.

The same approach works for the icon cache (iconcache_*.db) if program icons look wrong, but leave those alone if you are only interested in privacy.

Thumbs.db files in folders

Older versions of Windows saved a hidden Thumbs.db file inside each folder of pictures. Windows 10 and 11 still create these on network folders, and you may also find them on old USB drives, external drives or folders copied from older PCs. They hold previews of the pictures in that folder, including ones since deleted. To find them, open the folder, turn on hidden items (View > Show > Hidden items in Windows 11, or tick Hidden items on the View tab in Windows 10) and delete Thumbs.db. On Pro editions, the Group Policy setting Turn off the caching of thumbnails in hidden thumbs.db files under User Configuration > Administrative Templates > Windows Components > File Explorer stops new ones being created.

Stop Windows from creating thumbnails

If you would rather have no previews at all, you can switch them off. Folders will show generic file icons instead.

  1. Open File Explorer.
  2. Windows 11: click See more (three dots) > Options. Windows 10: View tab > Options.
  3. On the View tab, tick Always show icons, never thumbnails.
  4. Click OK, then clear the existing cache with one of the methods above.

A middle ground is to keep thumbnails on and simply clear the cache regularly, for example once a week or after working with sensitive images.

Does clearing the cache really remove the previews?

Deleting thumbcache files works like deleting any other file: the space is marked free, and on a traditional hard drive the old data can stay on the disk until something overwrites it. On an SSD, Windows normally sends a TRIM command that lets the drive discard the freed blocks, but no software can guarantee when that happens or that every internal copy is gone. If you want to reduce the chance of old previews being recovered from a hard drive, follow up by wiping free space; see how to wipe free space in Windows.

Doing it with Evidence Wipe

Evidence Wipe lists the thumbnail cache under its Windows history items, next to recent documents, jump lists and File Explorer search history. After a scan, Cleaning Preview (Ctrl+P) shows the cache with its size before anything is removed,; after cleaning, a verification report records what was removed and when. For leftover data on a hard drive you can then use the Wipe free space option, which overwrites empty space without touching your existing files. Scanning and preview are free; cleaning needs an Installation Key.

Quick summary

  • Easiest: Disk Cleanup > C: > tick Thumbnails > OK.
  • Also in Settings > System > Storage > Temporary files.
  • Most thorough: stop Explorer, delete thumbcache_*.db, restart Explorer.
  • Check for hidden Thumbs.db files on network and external drives.
  • Turn on "Always show icons, never thumbnails" if you never want previews stored.

Frequently asked questions

Is it safe to delete the thumbnail cache?

Yes. It only holds preview images, and Windows rebuilds them automatically when you next open a folder. The first time may be a little slower.

Where is the thumbnail cache stored in Windows 10 and 11?

In %LocalAppData%\Microsoft\Windows\Explorer, in files named thumbcache_32.db, thumbcache_256.db and similar. Each user account has its own.

Can the thumbnail cache show deleted pictures?

It can. A preview may remain in the cache after the original file is deleted, until the cache is cleared or that entry is overwritten.

Get three guides like this every month, plus software update notices.Subscribe →