Reset media library

Hello,

(I changed the source: new NAS, new IP)
I tried to delete the sources, clean up … nothing to do.

With Putty (SSH), what should I remove? (* .db?) to reset the default profile? (the library)…
Is it going to rebuild (reset)?

thank you

You could have just done a path substitution to change to the new NAS but if you have your library in an odd state then after you ssh in then.

systemctl stop mediacenter
rm ~/.kodi/userdata/Database/MyVideos116.db
rm ~/.kodi/userdata/Database/MyMusic72.db
rm ~/.kodi/userdata/Database/Textures13.db
rm -r ~/.kodi/userdata/Thumbnails/
systemctl start mediacenter

That should remove your libraries and leave everything else intact. Once you do this you will have to setup your sources again just as you would from a clean install.

OK, thanks

for the substitution, I did not succeed
maybe I should have kept the same IP (?)
So without even knowing what was stuck, I told myself that restarting completely from zero would not take me any longer …

You don’t need to have the same IP address, just the same file and folder names inside the movie/TV/music paths themselves. How this feature works seems to be commonly misunderstood so I wrote a guide [here].