Can't remove unavailable media.

When I add content to my PMS, I usually dump a ton of files into my server, then use an application to rename the files.

 

However, after the files have been renamed, I can't seem to remove the old file entry from the XML.

 

Things I've tried.

 

1.) Refresh

2.) Turbo Scan

3.) Deep Scan

4.) Analyze

5.) Force Refresh

6.) Empty Trash (Which yields: There was a problem emptying the trash for TV Shows.)

 

The only way I can get the content to delete, is if I enable "Clients can delete files" and delete each entry one by one. (Which, on hundreds of files, will take WAY too long)

 

Not sure what logs would be needed here, and I have tons of them. So I've uploaded them all for you here: http://level42.ca/files/Plex%20Logs.zip

Bump ?

+1, but linux/ubuntu 64bit

+1, but linux/ubuntu 64bit

also experiencing this on ubuntu 12.04 x64

BUMP !?

Bump!  

I'm trying to delete an entire TV Series that I'm done watching.  I've already deleted the entire folder with all files/content.  Where can i delete the series in PMS?  I don't want to empty the trash for all tv shows, because for some reason, many other series have that Yellow 'Unavailable' triangle, but they are still mapped and still play....

First off, I'd recommend renaming/reorganizing your content *before* adding it to the content location you have specified in your PMS rather than after.  Doing bulk renaming after you've added could result in some weird behavior - especially if it's done while a scan/metadata retrieval is active.  Just put the content in a staging directory, do your renaming, and then move it to the final location.

As for removing content from your library, the standard way is:

1. Move or delete the content so it's no longer in the specifed content location

2. PMS does a scan and detects the content is not there

3. PMS either then removes the library items or marks them as removed (trash), depending on your settings

It seems like your library might be in some sort of weird "limbo" type state.  My recommendation would be to make a backup of your PMS data directory and then empty the trash in the media manager.  If content disappears that you weren't expecting, then there was a problem with it anyway.  If it exists in the expected location, it should reappear when you scan.  If it doesn't then there's still something wrong and looking at log files (Plex Media Scanner.log) would be useful.

First off, I'd recommend renaming/reorganizing your content before adding it to the content location you have specified in your PMS rather than after.  Doing bulk renaming after you've added could result in some weird behavior - especially if it's done while a scan/metadata retrieval is active.  Just put the content in a staging directory, do your renaming, and then move it to the final location.

As for removing content from your library, the standard way is:

1. Move or delete the content so it's no longer in the specifed content location

2. PMS does a scan and detects the content is not there

3. PMS either then removes the library items or marks them as removed (trash), depending on your settings

It seems like your library might be in some sort of weird "limbo" type state.  My recommendation would be to make a backup of your PMS data directory and then empty the trash in the media manager.  If content disappears that you weren't expecting, then there was a problem with it anyway.  If it exists in the expected location, it should reappear when you scan.  If it doesn't then there's still something wrong and looking at log files (Plex Media Scanner.log) would be useful.

Thanks for the tips Chris, I've verified that the content has been removed from the source directory, and forced Plex to preform a "Deep Scan". Upon the scan completion, the removed files still have XML entries in Plex.

Whenever I try to force empty the trash I get the following message: There was a problem emptying the trash for TV Shows

I already have Plex set to empty the trash upon scan completion, but it does not appear to be working either.

*I assume that "Unavailable content" according to Plex is automatically moved into the Trash, but I seem to be having some trouble clearing it.

Similar problem.
1. Moved 3 TV-shows out of scanned folder.
2. Updated library
3. cleared bundles
4. emptied trash
5. updated library again.
Still all 3 shows are listed.
Restarted PMS computer
Emptied trash and cleared bundles again.
Still showing the shows and eps.

(of course they show as unavailable....but I want them so stop listing them too)

Same problem here

Using the Windows Media Server

Got a new HDD, moved the content to it after disabling the 'Empty Trash automatically after every scan' setting, as per instructions I read.

Moved the files, added the new location in while leaving the old location still listed, scanned it in, re-enabled that setting, and then removed the old path.

Have a (2) listed for each of the TV Programs, and an unavailable button on the old path. I cant seem to get it to use the new path when playing either, it just seems to use the old one and then give up. I cant seem to get rid of the old path no matter what I have tried.

Now the old drive is gone completely, as I had a HDD failure, so that has probably made the situation worse.

*Bump* - have the same problem. On a Synology DS412+

In the same boat. Latest PlexPass version of PMS (0.9.9.10) running on Ubuntu Server 12.04. This issue has been around for me for quite some time... I've had PMS on CentOS, and before the MacOS Lion. I actually couldn't delete TV shows at all (not even singles) until i found a forum post stating I needed to enable clients the ability to delete files. At least there's that... One other thing. If I move/delete a movie from my movies folder, after running update, i do see a trash can icon over the cover.. this is only an issue with TV shows.

Now I've got a 2 shows I'd like to purge, and they remain in PMS... 9 seasons, and 14 seasons... I really don't wanna remove that file by file in the PMS web interface.

I think my issue is in the trash process... the logs look like I've got something in the trash, but always shows "About to destroy 0 deleted items" when i try to Empty Trash.

May 21, 2014 12:22:46 [0x7fd5b7fff700] DEBUG - Request: [10.0.1.3:52774] PUT /library/sections/11/emptyTrash (3 live)

May 21, 2014 12:22:46 [0x7fd5b7fff700] DEBUG - We found auth token (xxxxxxxxxxxxxxxxxxxx), enabling token-based authentication.

May 21, 2014 12:22:46 [0x7fd5b7fff700] DEBUG - Came in with a super-token, authorization succeeded.

May 21, 2014 12:22:46 [0x7fd5b7fff700] DEBUG - About to destroy 0 deleted items.

May 21, 2014 12:22:46 [0x7fd5b7fff700] DEBUG - About to destroy 0 deleted directories.

May 21, 2014 12:22:46 [0x7fd5b7fff700] VERBOSE - Completed request: PUT /library/sections/11/emptyTrash: 2200

May 21, 2014 12:22:46 [0x7fd60ec66700] VERBOSE - Finished writing response for PUT /library/sections/11/emptyTrash, 0 bytes in 20164ms

May 21, 2014 12:22:46 [0x7fd5f63cd700] DEBUG - Request: [10.0.1.3:52775] PUT /library/sections/3/emptyTrash (3 live)

May 21, 2014 12:22:46 [0x7fd5f63cd700] DEBUG - We found auth token (xxxxxxxxxxxxxxxxxxxx), enabling token-based authentication.

May 21, 2014 12:22:46 [0x7fd5f63cd700] DEBUG - Came in with a super-token, authorization succeeded.

May 21, 2014 12:22:46 [0x7fd5f63cd700] DEBUG - About to destroy 0 deleted items.

May 21, 2014 12:22:46 [0x7fd5f63cd700] DEBUG - About to destroy 0 deleted directories.

May 21, 2014 12:22:46 [0x7fd5f63cd700] VERBOSE - Completed request: PUT /library/sections/3/emptyTrash: 2200

May 21, 2014 12:22:46 [0x7fd60e465700] VERBOSE - Finished writing response for PUT /library/sections/3/emptyTrash, 0 bytes in 10ms

May 21, 2014 12:22:46 [0x7fd5927fc700] DEBUG - Request: [10.0.1.3:52776] PUT /library/sections/13/emptyTrash (4 live)

May 21, 2014 12:22:46 [0x7fd5927fc700] DEBUG - We found auth token (xxxxxxxxxxxxxxxxxxxx), enabling token-based authentication.

May 21, 2014 12:22:46 [0x7fd5927fc700] DEBUG - Came in with a super-token, authorization succeeded.

May 21, 2014 12:22:46 [0x7fd5927fc700] DEBUG - About to destroy 0 deleted items.

May 21, 2014 12:22:46 [0x7fd5927fc700] DEBUG - About to destroy 0 deleted directories.

May 21, 2014 12:22:46 [0x7fd5927fc700] VERBOSE - Completed request: PUT /library/sections/13/emptyTrash: 2200

May 21, 2014 12:22:46 [0x7fd60ec66700] VERBOSE - Finished writing response for PUT /library/sections/13/emptyTrash, 0 bytes in 13ms

 

I'm happy to help out troubleshooting if needed. Just let me know what you'd like me to do.

Yeh i got same problem no way to remove it.

Same here +1

Same here on Windows 8.1 64bit. 

I guess I'll try to remove the library and add it again later today. That should be a (temporary) solution.

Also having the same problem. I'm running on the Windows 10 build 9879 Tech Preview, latest Plex Pass PMS. 

Did anything come about this? I have the same issue. I'm using Server 2008 R2 with the latest installation of Plex Media Server.. Just started recently.

All of my media is on my Synology NAS. It started to act funky and say that there were duplicates of my media (when there wasn't) I moved the suspected folder out of where Plex scans. It now isn't available (of course) but it'll randomly delete 1 file here and there?

I had the issue with a particular TV show. I could not get the show to stop showing in the list even though the video files were no longer there. The fix was to edit the TV Library's list of folders and remove the folder that used to contain the show. As soon as I removed the folder, it removed the "Unavailable" entries. In my case I didn't re-add the folder, since this was the only show in that folder anyway.

If it's of any use for any developers looking at this thread: it looks like the bug is there if there is only one show associates with the folder entry, and only the show's video files are removed.

Running 0.9.11.13 on windows 8.1. Problem is similar to the above, but attempting to delete the entry from w/I plex or apps would give error “server must be set to allow clients to delete” or something to that effect.

Now, the file was already deleted, and plex had it listed as unavailable.

Found that it’s happened a few times, notably on files I inadvertently dropped into the wrong directory (eg a tv show in a movie directory) which caused plex to ■■■■.

Only solution was to remove the folder from the library then re-add it. Really crappy solution.

Here’s my fix: go into info on the problem file and copy the filename. Next navigate to the folder plex references and create a null file with said filename. Now you can pop back into plex and delete it successfully.

Works for me.

Damped annoying bug, though!

Hey Guys,

Exactly the same issue, only reared its head recently and has mever been an issue in all the time i've used PMS, Running

Running PMS Version 0.9.11.17.986-269b82b

The workaround I have found is to remove the library and then re add the library. It's a lot of effort!

Cheers Rob.