If you’ve accidentally downloaded a sensitive image file that can get you into trouble, deleting the file from Windows is just not enough even if you’ve perform a secure wipe. Forensics people can still retrieve the image from your computer, thanks to the thumbnail caching feature. When you open a folder containing a lot of images, the thumbnail caching feature will greatly improve the time that takes to show the images via thumbnails rather than regenerating them every time you get in to the folder.
In Windows XP, the hidden thumbnail file which is thumbs.db are placed at the same location of the images but in Windows Vista/7, the thumbnail files are stored at the user’s folder but will still generate thumbs.db when you access shared network folders.
This thumbnail caching feature can be an invasion of privacy and we’ll show you how to view the thumbnails inside the database cache file, clear them and and also how to disable it from caching more thumbnails. Here is how to do it.
View images in thumbs.db and thumbcache_*.db
You cannot just open the thumbnail files on an image viewer to see the cached images. You need a special dedicated program called Thumbs Viewer for loading thumbs.db and Thumbcache Viewer for loading thumbcache_*.db files. You will need to manually load the thumbs database cache file to the viewer either from the File > Open or drag and drop the thumb files to the program.
The location below is where you will find the thumbcache database files for Vista/7.
As for thumbs.db, they can be located in any folders that you have previously opened an image file. Just do a search of thumbs.db at the Windows Explorer search bar. Once the thumbnail database is loaded in the viewer, you will see a list of all the thumbnails being cached where you can instantly view it by clicking on the filename and also save the cached thumbnail through the right click context menu.
Do take note that the remove selected feature simply removes the thumbnail cache from the list and it will reappear on the list again when you reload the thumbnail cache file to the viewer.
Disable Windows from caching thumbnails
If you feel uncomfortable of Windows secretly generating cached thumbnails of the images that you’ve viewed, your next step is disable the thumbnail caching first before deleting them or else they will be re-generated again. There are two ways to do it to completely disable generation of thumbnails database.
1. Go to Control Panel > Folder Options > View tab > tick “Always show icons, never thumbnails” on Vista and 7. On Windows XP, tick “Do not cache thumbnails” instead. Enabling this option will stop Windows from automatically saving the generated thumbnails in database and you will notice that all images are now showing their icon instead of thumbnails.
2. Download this registry file and run it. This reg file will add a DWORD of DisableThumbsDBOnNetworkFolders with the value 1. When you apply this registry fix on your computer, thumbs.db will not be generated on network shared folders. However when other computers on the same local network that didn’t apply this registry fix access your shared folders, thumbs.db will be generated on your shared folder. If you have multiple Windows computer in your network, it is best to install the registry fix on all of the computers.
Delete thumbs.db and thumbcache_*.db
You cannot manually delete the thumbcache_32.db, thumbcache_96.db, thumbcache_256.db, thumbcache_1024.db, thumbcache_idx.db and thumbcache_sr.db files because they are locked. CCleaner has an option to remove Thumbnail cache but it is possible that sometimes it doesn’t work. In one of our test, CCleaner reported 0 bytes to be removed on analyzing with the Thumbnail Cache option enabled.
Thankfully the built-in Disk Cleanup tool that is found in Start > All Programs > Accessories > System Tools > Disk Cleanup can remove the thumbcache files. Simply tick the Thumbnails checkbox and click OK. The .db files will be moved to a ThumbCacheToDelete folder where it will be automatically deleted when Windows is rebooted and new .db files will be recreated.
As for thumbs.db, just use the Windows Search to find the files on your computer and manually delete them as they are not locked. Now you know how dangerous Thumbs.db files are on your computer. Even if you’ve deleted sensitive pictures, there are still traces of the images laying around somewhere…