Jellyfin Forum
How to clean up the metadata of removed files ? - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: General Questions (https://forum.jellyfin.org/f-general-questions)
+--- Thread: How to clean up the metadata of removed files ? (/t-how-to-clean-up-the-metadata-of-removed-files)



How to clean up the metadata of removed files ? - phantomwise - 2025-04-07

I noticed that I have leftover metadata that I don't know how to remove.

If I move a movie's folder outside its library and rescan, then it disappears from the library and collections, but if I move it back, even after having deleted every nfo and image file and rescan, then the movie is back in the collections it was before, and if it was watched before it still appears as watched.
Same with renaming a movie folder : after renaming and rescanning, the collection.xml file contains both paths, the old and the new.

Is there a way to clean up all the data that relates to removed files ?

Also, how do I avoid creating more in the future ? Does the"Delete" option inside the WebUI also remove the movie's watch status, favorite status, and collections ?


RE: How to clean up the metadata of removed files ? - sjorge - 2025-04-07

There is no easy way to do this, however 10.11.0 when release should start cleaning up those leftover files: https://github.com/jellyfin/jellyfin/pull/13760 landed a few days ago.


RE: How to clean up the metadata of removed files ? - phantomwise - 2025-04-08

Oh wow that's some good timing !
I was really afraid that the answer would learning to use sql to edit the database directly and making scripts to clean the xml files ^_^'
Thanks whoever made the PR Smiling-face


RE: How to clean up the metadata of removed files ? - Rubén Navarro López - 2025-04-08

That's awesome!

Any expected date for 10.11?

Thanks!


RE: How to clean up the metadata of removed files ? - TheDreadPirate - 2025-04-08

There is no concrete date. Since 10.9 was released we've been doing pretty well achieving a 6-ish month release cadence. Which would put 10.11 in the May time frame.

Having said that, the EFCore database migration is a huge change. So there will almost certainly be a delay in our 6-ish month release cadence.


RE: How to clean up the metadata of removed files ? - Rubén Navarro López - 2025-04-09

That's big news, hope everything goes well for you guys!