🔥 Holiday Sale! 25% Off Platinum Membership and up to 50% Off on Deployarr (ends December 31).

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.

Userdatafolderbefore | Smarthomebeginner
Thumbnails Folder

Thumbnailsfoldersize | Smarthomebeginner
Thumbnails Folder Size

Best IR Remote Controls for Kodi:
  1. SANOXY remote control - $12 Editors Pick
  2. Rii Mini i25 Wireless Air Mouse Keyboard K25 IR Remote - $28
  3. Air Mouse 2.4G Wireless Mini Keyboard Infrared IR Leaning Remote - $14
  4. Dupad Story Backlit Air Mouse Keyboard Remote - $14
  5. Logitech Harmony 650 Infrared All in One Remote Control - $44

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.

Textures6Database | Smarthomebeginner
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.

Userdatafolderbefore | Smarthomebeginner
Thumbnails Folder - Before Cleaning

Userdatafolderafter | Smarthomebeginner
Thumbnails Folder - After Cleaning

Hope this helps!

Be the 1 in 200,000. Help us sustain what we do.
129 / 150 by Dec 31, 2024
You will gain benefits such as Deployarr access, discord roles, exclusive content, ad-free browsing, and more.
🔥 Holiday Sale! 25% Off Platinum Membership $399.99 $299.99 (ends December 31).
Join the Geek Army (starting from just $1.67/month)

Anand

Anand is a self-learned computer enthusiast, hopeless tinkerer (if it ain't broke, fix it), a part-time blogger, and a Scientist during the day. He has been blogging since 2010 on Linux, Ubuntu, Home/Media/File Servers, Smart Home Automation, and related HOW-TOs.

Holiday Sale