Kodi: Reset/delete database

Linux howto's, compile information, information on whatever we learned on working with linux, MACOs and - of course - Products of the big evil....

Kodi: Reset/delete database

Postby ^rooker » Thu Mar 02, 2017 10:47 pm

[PROBLEM]
I haven't found any way of simply purging an outdated Kodi database.
Cleaning the database takes foreeeeeeveeeer - and when removing missing sources, it asks for every single folder whether to keep or delete it.

Setup is: Kodi v16 (Jarvis) on LibreElec v7.0.2 on a Raspberry Pi 1 (model B).

[SOLUTION]
So I chose to delete the Kodi database file(s).

1) SSH to Kodi/Libreelec

2) Go to the folder: ~/.kodi/userdata/Database
(/storage/.kodi/userdata/Database)

Here's an example what you may find there:
Code: Select all
-rw-r--r--    1 root     root         28672 Oct 16 22:54 ADSP0.db
-rw-r--r--    1 root     root        921600 Mar  2 09:23 Addons20.db
drwxr-xr-x    2 root     root          1024 Oct 16 22:53 CDDB
-rw-r--r--    1 root     root         28672 Oct 16 22:54 Epg11.db
-rw-r--r--    1 root     root        188416 Oct 16 22:54 MyMusic56.db
-rw-r--r--    1 root     root      15355904 Mar  2 18:22 MyVideos99.db
-rw-r--r--    1 root     root         32768 Oct 16 22:54 TV29.db
-rw-r--r--    1 root     root       2715648 Mar  2 18:15 Textures13.db
-rw-r--r--    1 root     root         20480 Dec 16 14:53 ViewModes6.db


3) Delete the database file:
Then delete the database file (.db) for whatever library you want to purge:
  • MyMusic*.db (Music)
  • MyVideos*.db (Video / TV-Shows / Movies)

4) Reboot Kodi.
8)
  • 0

Jumping out of an airplane is not a basic instinct. Neither is breathing underwater. But put the two together and you're traveling through space!
User avatar
^rooker
Site Admin
 
Posts: 1446
Joined: Fri Aug 29, 2003 8:39 pm
Reputation: 0

Return to Knowledge Base

Who is online

Users browsing this forum: No registered users and 3 guests

Who is online over last 24 hours

Users browsed this forum in the last 24 hours: Bing [Bot] and 24 guests

cron
Reputation System ©'