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

How to clear XBMC thumbnails cache and remove unused thumbnails?

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!

Get 20% OFF with IPVanish VPN:

♦   Hide your browsing and streaming activity: No logs and no tracking
♦   Access geo-restricted content from anywhere
♦   Encrypt and anonymize: Kodi, Plex, Downloads, Personal Info
♦   Windows, Mac, Linux, Android, iOS, Router, and more.
♦   Money back guarantee - Sign Up Now

About the author


Anand is a self-learned computer enthusiast, a part-time blogger, and a Food Scientist by career. He has been blogging since 2010 on Linux, Ubuntu, Home/Media/File Servers, Smart Home Automation, and related HOW-TOs on htpcbeginner.com and smarthomebeginner.com.