Home » Home Media » How to clear XBMC thumbnails cache and remove unused thumbnails?

How to clear XBMC thumbnails cache and remove unused thumbnails?

written by Anand March 22, 2012

After a while of accumulating videos my "xbmc" folder grew several folds in size. If you search around, you will find that several people report this problem. The culprit here is the Thumbnails folder or cache that keeps accumulating thumbnails, most of which become obsolete or useless over the course of time. Also, you would notice that there are several copies of the same thumbnail. Browse through 1000s of these files and deleting them manually is not practical.
Challenge is to delete the unwanted thumbnails without affecting your video thumbnails. I did some research and described below is a way that worked well for me to clear XBMC thumbnails cache. While the thumbnails of videos (in the "Video" folder) is still the major contributor, the remaining can be cleaned easily as described below.

Update (Mar 21, 2016): Check out the new updated procedure to clear Kodi thumbnails cache.

Step 1:

Clear XBMC Thumbnails Cache

First, backup your Thumbnails folder.

Thumbnails folder

Thumbnails Folder Size

Top XBMC Compatible Remote Controls:

  1. CE Compass USB PC Laptop Remote Control Controller - Ubuntu configuration instructions, see this post.
  2. Media Center MCE PC Remote Control and Infrared Receiver
  3. Noah Company MediaGate GP-IR02BK MCE Remote Control, 2 Channel IR (Black)
  4. Rosewill Media center Infrared Remote Control RRC-126
  5. Adesso Media Center remote control

Step 2 (Optional):
If you are cleaning your entire Thumbnails cache (including videos) then the only way to clean the thumbnails for your videos is to remove the video sources and clean the XBMC database. If you do this you will have to readd your sources after cleaning and rescrape your library, which can take several hours. If you do not want to do this and would like to clean all thumbnails except for your videos, then skip to the next step.

Step 3:
Delete *.tbn, *.gif, and *.jpg files from each of the folders within "Thumbnails" folder except the "Video" folder. Optionally, delete *.tbn, *.gif, and *.jpg within the "Video" folder as well if you followed Step 2 above. Since my .xbmc folder is mounted on a Windows PC as a SMB Share, I just searched the whole Thumbnails folder for the files through Windows Explorer and deleted all the files. Other easier methods may be available.

Step 4:
You will have to now edit the Textures database (Textures6.db) in xbmc/userdata/Database and empty all the records. This is a SQLite database and so you may use any of the freely available editors. I used phpLiteAdmin. As shown in the picture, open the Textures6.db and empty all the records in the "texture" table.

Textures6.db Database

Step 5:
Finally reboot your sytem. If your cleaned thumbnails of your videos as well (followed Step 2) then you can readd those sources and let XBMC rescrape the videos.

In my case I cleaned the entire thumbnail cache, and it reduced the size from 831 MB to 151 MB.

Thumbnails folder - Before Cleaning

Thumbnails folder - After Cleaning

Hope this helps!

Did this post help you?
SmartHomeBeginner brings in-depth tutorials easy enough to understand even for beginners. If you are reading this, please consider buying us a coffee (or two) as a token of appreciation.

Related Articles