Library files not deleting

Hi,

I’ve used Plex for a number of years, but in the last 6 months or so I’ve been having a problem.

When I delete files from my HDD, they don’t always delete from PLEX. More confusingly, sometimes if I manually remove them from PLEX, they show up again (even though they don’t exist anymore).

Adding content is not a problem, this works great and fully automatically like it has always done.

Any ideas what could be causing this?

My server is a Windows 10 Desktop PC.

Thank you.

Scan the library if Plex does not do so automatically.
Then empty the trash and clean bundles. Optimize the database if you’ve not done so recently and/or it is not scheduled (Plex Web → Server Settings → Scheduled Tasks).

Possibly moved somewhere Plex still sees the movie or you’ve multiple copies/versions?

Look at the Get Info for the media. It will show you the path the file.

If all else fails, check your log files for database issues. Pull the ZIP file and look in PlexMediaServer.log (and .1… .5). Your system should be set for debug, not verbose, logs. See support articles below.

If corrupted, you’ll see entries like this:
<date> <time> ERROR - SQLITE3:0x7c71ea17, 11, database corruption at line 85694 of [bf8c1b2b7a]

Plex Media Server Logs
Reporting issues with Plex Media Server


library actions

Thank you for the helpful detailed response. Unfortunately, after doing the first part (trash, bundles, optimize), I am still suffering the same problem.

In regards to your second question. The files have definitely been deleted. When it shows up again in PLEX, it is listed as ‘unavailable’ (and won’t play). That’s what confuses me the most, why does it come back?

I will now the PlexMediaServer Log, hopefully that will fix it.

I checked the log, it mostly says DEBUG.

I searched for ERROR, and this is the type of thing that comes up (very similar each time);

Aug 09, 2020 18:25:01.221 [11700] ERROR - SSDP: Error parsing device schema for http://192.xxx.xxx.xxx:49153/description0.xml

Thank you for the detailed reply.

Unfortunately I do not have PLEX reading the root of my drives.

My files are stored on a separate HDD (internal) and also, they are in a folder in the root of that drive (PLEX points directly to the folder, not the drive).

Hi,

Yes, empty trash automatically after ever scan is ticked, and I believe I only have the 1 folder for my library (I checked this in Manage Library>edit…is this the correct place to check?

Hi
I have the same problem .
if i delete some files it doesn´t show the trash icon and i can´t delete from plex by empty trash

I’m also experiencing the same issue. This issue has started with the release 1.18 (or higher). I observed the issue with the music library, but i did not try with others.

If you downgrade to release to 1.17.x, the next scan would fix the issue, but this is not what we are looking for.

@trumpy81 @sa2000 Do you have a status update for that issue since it is mandatory now to upgrade at least to 1.18.3 or higher?

@trumpy81 Last try was 1.19.x and the issue was still there. However, i never seen a fix for that issue.

I can try to upgrade to the latest public release and let you know.

If I’m still getting the issue, i will need a fix quickly… will you assist us as needed?

I just upgraded to Version 1.21.0.3711 with success, and i removed one folder associated with the music content library, then I’m running a full scan right now…

I updated to the last public release even though i have a plex pass.

I’m still getting the issue, the removed content is still showing in plex, but unavailable of course.

I also tried to empty the trash, same result.

I’m pretty sure if i downgrade to 1.17, the next scan would clean up the removed content.

Can you tell me what do you need to troubleshoot this issue?

Please download the logs with that weblink from my google drive

The folder “Instrumentaux 1” removed was under “\Music\Alain Bashung”

The file size is 94.6 MB, i cannot upload file over 32 MB.

I changed the permission… it should be okay with that link below

@trumpy81 Are you able to download the file now ?

@trumpy81 Thanks to let me know about the non-existent files, i was not aware. I also cleaned-up that part prior going forward.

I enabled Debug logging as requested,

Then, I ran again a full scan for the music library. Still getting the issue. Take in consideration that i cannot replicate this issue with 1.17.x

Web link to get the logs

I’m the op of this thread and I have to say that the issue fixed itself following an update. Nothing I did fixed it. But come one update (not sure which), it all started working. For now at least.

When you edit the affected library(s),
go to the “Add Folders” tab
inspect the folder paths which are listed there.
Is there any one of those paths either

  • no longer existent
  • inaccessible
  • completely empty

?
If so, then the failure to remove those items is to be expected.

@OttoKerner @sa2000 Only one path is assigned to that library. The missing path reported by @trumpy81 has no relationship with the current issue, it was just good to know since it was related to an obsolete library no longer used.

In my case, we need to put the emphasis on the music library… Again, this issue cannot be replicated prior release 1.18.0.

To answer well your question, the path is accessible, and there are a lot of content.

Issue: If I remove files related to the music library, then they won’t be removed from the content library following a full scan.

I will follow the procedure you gave me today.

However, why it is working very well with 1.17.0.1841 ?