Plex deleted entire Movie library!

Server Version#: 1.43.1.10611
Player Version#: NA

Server is running on: Linux Ubuntu 24.04.4

I added a new movie to my library and ran a library scan. It took the normal amount of time for the scan tor run and the new movie showed briefly, along with my other movies. A second or two later the screen refreshed and all of our movies, except for the new movie, disappeared.

After running the scan again and doing other things (changing to another local user, etc.) I opened my movie library directory and the only thing listed was the newly added movie. Everything else was gone, over 960 movies.

I am not new to Plex, I’ve had a lifetime pass for 10+ years. There was nothing else that I had clicked on. I have a complete backup of everything so I can recover but there is something wrong with PLex.

I have a zipped copy of the logs and the database but I’m not going to attach them until asked.

Please advise.

David

Don’t give Plex write access to media directories.

While that’s generally good advice… I’ mont sure the OPs media is deleted – it’s just dropped from their server (at least that’s how I understand their post and I seriously hope understood that correct).

Server logs should give pointers as for what went wrong.
Unless ā€œswitching local usersā€ impacted your mounts and resulted in media no longer being visible to Plex, this should not result in your library’s content getting lost.
I wonder though… do you have Settings > [Server Name] > Library > Empty trash automatically after every scan enabled on your setup? This can result in Plex dropping any items it can no longer see during an ongoing scan. There’s some safeguards preventing it from dropping media if an entire drive is not available… but those could be bypassed if the drive is available initially and then lost while the scan is progressing.

He has a complete backup of the files. He’s already a mile ahead of most server owners.

No, the Linux directory is empty (except for the new movie. The only thing I had done was run the scan after I had copied the moving into the directory.

@tom80H,

I’ll check the ā€˜Empty Automatically’ in just a bit. I brought the server down while I’m copying the backup.

I’ll change that statement. I probably ran the scan WHILE the file was copying but I’ve done that a million times.

I should probably learn to do that… :thinking:

Please share your logs and database. Does anything else has access to your media directory? Do you have a custom directory setup for your temporary transcoding location or downloads?

Your PMS version would suggest that you shouldn’t be hit by this issue :backhand_index_pointing_down:

But that’s the only recent issue that resulted in similar behavior. Plex definitely should not have deleted your media.

Ok, here’s my update. I’m attaching the requested logs but note that I have not scrubbed them for personal info. However, I found all the missing movie files in the Trash folder so the restore was easier. Because they were in the trash folder I was going to write the issue off to either something I did by mistake or some Plex internal anomaly. So, I had my library back, minus the database content (date added, watched, etc.), so I was back to fairly normal.

So here’s more detailed response to your questions:

  • Does anything else have access to my media library: Yes, sorta, I run Handbrake on Windows (11) and the output is written directly to my Linux movie directory via a network connection. I cannot think of anything else

    Plex Media Server Logs_2026-04-29_16-01-30.zip (488.8 KB)

    t think of anything else that has access.

  • Do I have custom temporary directory settings: No

  • Logs:

Plex Media Server Logs_2026-04-29_16-01-30.zip (488.8 KB)

  • The database log is too large to attach, even in zipped form it’s over 12mb. Any ideas on how to get it posted?

@tome80H, sorry for the delay but yes I do (at least I did) have the 'Empty trash automatically…" setting enabled/checked.

Ruling out a malicious actor (i.e. somebody had admin access to your server), PMS itself won’t just delete things in the background unless something is very mis-configured (e.g. you mapped your temporary transcoder path to the location of your media).

TV shows can be configured to be removed (e.g. keep x amount of episodes) but again, you have to explicitly configure that and that wouldn’t affect movies.

PMS doesn’t have any logic to remove files in a batch manner like this, you can remove files individually via the API but that won’t remove entire libraries unless it had been asked to do this from an external source (one by one) and the preference to enable media deletion was checked.

The logs you provided are not really useful because debug logging is disabled. A database also won’t really tell anyone much, the logs with debug logging enabled when the issue occured would be required.

Ok, I appreciate everyone’s help very much. I’m going to write this off as something I did accidently. If by chance it is something with Plex then at least there’s a previous issue that might help.

Again, thank-you. I think that you can close this issue.

David