Library duplicates are not removed although the file is deleted.

Lately, I’ve been having problems with duplicates still appearing although the duplicate file is deleted from drive after I’ve replaced them with another version.
Emptying trash and rescanning section does nothing, episodes still appear as duplicate, with a “unavailable” warning when I check the episode in the browser.
I have to manually click “get info” to see both files, and then press “Delete file” on the unavailable one, which is already deleted from my harddrive.

Any ideas how to fix this issue which is causing a lot of unneccessary manual work?

When I remove a entire folder for a show, it still doesn’t remove the library item, although media is marked as unavailable.
Tried emptying trash again, without effect. I had to manually remove the entire show from library and re-introduce it by re-adding the files to folder and re-scanning.

bumping post

@stevencas said:
Any ideas how to fix this issue which is causing a lot of unneccessary manual work?

More manual work. :slight_smile:

The Plex Dance
https://forums.plex.tv/discussion/277433/the-plex-dance

The purpose of this is to remove all cached metadata and xml data for an item that Plex usually keeps. This helps when you want to “start from scratch” for particular item

  • move all files for the media item out of the directory your Library is looking at so Plex does not “see” it anymore
  • update library ( scan for media items )
  • empty trash
  • clean bundles
  • double check naming schema and move files back
  • update library

I delete the duplicate files, so plex should not be able to “see” it, but it still says it does, although it marks the file as unavailable

Delete the duplicates, then Plex Dance the remaining, now non-duplicate, files.

I did the plex dance, just for the fun of it, and optimized the database while I was at it.
Still didn’t remove the duplicates that are made up of deleted files…

The thing is, plex is able to do this on its own without me manually removing one and one file. It has always worked like that before. If I replace a whole season of a show, that is 20-something library entries to manually remove one by one…

1 Like

So you completely moved all seasons / episodes for a TV show, including non-duplicates, to a non-Plex visible location, then did the update library / empty trash / clean bundles, and the show was not removed from the library?

If so, then maybe the Plex database has been corrupted somehow, because you’ve effectively deleted the TV show from your system.

Maybe one of the Ninjas or Plex employees can jump in. This is getting beyond my Plex knowledge level. I’ve had duplicates, but the Plex Dance has always cleaned things up for me.

I’m having the same issue, although this worked before …

for example: i had an old version of a movie, then i found a better one, i deleted the old version, added the new version and now it appears as duplicate and unavailable…

Always handle quality updates like moving media files:

  1. add the updated file
  2. ‘Scan Library Files’
  3. movie poster shows the ‘duplicate’ indicator
  4. remove the old version file
  5. ‘Scan Library Files’
  6. empty library trash

This will prevent the updated file from appearing under ‘recently added’.
Steps 5 and 6 will get rid of the old link to the removed file.

What do i do if this doesn’t work? Added new files (TV Series) get duplicate indicator. Deleted old files and the only change is now all the episode say unavailable. I have to Play the correct version or go in under “Get Info” and delete the file before I play it. I was hoping to avoid doing this for all 152 episodes.

Verify that all folder paths which appear on the ‘Add Folders’ tab in the properties of your tv show library are

  • valid
  • still existent
  • accessible for Plex
  • not completely empty

Yes to all the above.

Did you empty the Plex library trash as last step?

I did, and tried it again to make sure, but they are still there. One thing that worked on another series, but for some reason not this one, I tried the Split Apart option and deleted the old series, but for some reason it doesn’t work all.

Did you switch the default meta data agent of your tv show library? Sometime in the past after you added an episode of this show for the first time into your library?

I think the only option now is the Plex Dance with the whole show.

I followed ALL the “Plex Dance” Steps several times - and Plex still duplicates the movie. The duplicate shows the same file name, file location, description, plot summary, rating, poster, tags, etc. In other words it’s an exact duplicate. And no, I did not change the meta data agent either.

Why can’t Plex provide a simple delete procedure when the duplicate is an EXACT copy in every detail? This isn’t a situation where the movie exists in two different file locations, etc.

By the way, this duplication seems to happen most frequently with large, full bluray entries. This is definitely a Plex PMS bug.

I also wanted to add that I have 3,900+ movie entries and it’s a pain you-know-where to correct these exact duplicates, even if they occur only 1 or 2% of the time (39-78 entries). Keep in mind since they happen to new entries, the duplicates are also right in your face in Recently Added Movies.

And I’m not complaining about duplicates that arise from a mistake I may have made in the naming convention or other errors I may have introduced.

What can also cause identical duplicates is this:
If your library is set to update itself automatically or periodically
and then someone triggers ‘Scan Library Files’ manually on top of it, after adding new files to the media storage.

Could it also be from plex not able to access the drive and or path to verify the file is actually gone?