How to remove all missing files from library?

It seems that Plex, for some unknown reason, doesn’t remove missing files from the library, but insists on just keeping them there. Like, say, I have moved files around and now for several TV-shows Plex shows duplicates for each episode, except that it says one of those duplicates isn’t available as the entry points to the previous location.

So, my question is rather simple: how do I make Plex forget all the files that are unavailable?

PLEX retains metadata in the event you have a drive disconnected it doesn’t kill off alot of content. To clean up metadata go to The Plex Dance ™. All steps, in order, do not vary from the instructions and this will fix you up

So, there is no sane way of doing it and the only option is to throw the whole library away and re-scan everything?

That is not what the instructions say. However, you might get a good result by right clicking the library>>scan library, and empty trash. BUT if you moved/changed a lot then the dance is the way.

Edit your library(s),
go the the ‘Add Folders’ tab
make sure that every path listed in there is still:

  • existent
  • accessible for Plex server
  • not completely empty(!)

It is, actually, what the instructions say.

sigh Guess I don’t have any choice. Plex-devs really should add an option for cleaning up the library.

Your instructions aren’t relevant, that’s not what I asked for.

If you know it better…

Yes, like I said, the problem isn’t Plex not finding my files, the problem is Plex showing duplicates for my files, not removing the old entries for files after I moved them.

Rescan, followed by an empty trash

Nope.

You really need to increase the amount of words in your feedback, for us to help you :wink:

The other commenters already made it rather clear that there is no way of removing the unavailable, duplicate entries without going through the song-and-dance of removing everything from the library and re-scanning it all.

No, just re-scanning the library and emptying trash doesn’t work.

Please post a screenshot of the Plex media info of one affected item.
I am specifically after the folder path and file names which appear at the top.
Are these different or are they identical?
If they are different, is one of them marked as “unavailable”?

Both /mnt/Storage/Video and /mnt/8t/Video exist and are accessible, I just moved the show from one to the other. I did this for multiple shows and they all exhibit this same behaviour, so going through each of the hundreds of episodes manually and removing the unavailable one is a pain in the rear-end.

Is one of these empty?

No. There are files in them both.

Is /mnt/Storage/Video/4K/TV-Shows existent and not empty as well?
Because that is the subfolder which should appear on the ‘Add Folders’ tab.

Yes, it exists and yes, there are files there.

How many different paths are appearing on the ‘Add Folders’ tab and are they all still there and not empty?