Plex will not delete a TV or add new episodes. Other Movies and other TV shows work fine

Server Version#: 4.147.1

My plex is working fine apart from episode 2 of one show would not add. I tried everything I could think off, even completely removing the directory from the server… it still will not update, as in I can not even delete it.

Normally if a show dir is deleted I do a scan and it is removed form plex… but now it scans and nothing happens.

  • I’ve done database optimise

  • clean bundles

  • recans

  • empty trash

on both the tv library and the entire server… still no luck.

Any ideas?

I have tried deleting the TV show from inside plex, and they removed it… but then I could not readd it.

  • All other shows work as expected

  • It is NOT a naming error. I’m using the same naming conventions that I use on all the other tv shows and it works fine.

any ideas?

Please show the actual file names and the folder structure.
Only then we can rule out a naming issue.

defiantly not a naming issue, as it is the same naming structure I have used for years and years and years and years.

After some more tests it seems it is other shows in that same library as well, while the movie libraries and some other tv show libraries are working fine.

for completion, this is the structure.

Videos\TVShows\TV_Shows\IT Crowd, The (2006) {tvdb-79216}

– Season 01

– – S01E01 - Name of Episode [WEBDL-1080p][x265].mkv

That can be a fallacy.

Why is there TVShows\TV_Shows\ i.e. double tv shows?

That’s not the show’s title.

forget about the article at the end of the name. I always put “the” and “a” and stuff at then end of the dir name to make the dirs more readable, it literally works on every signal films andf tv show on the sever…. that dir names was just an example I picked, as the actual directories that are causing problems have been deleted and I didn’t want to manually look up the codes….

Videos\TVShows\TV_Shows\The Paper (2025) {tvdb-449872}

is one of the actual broken shows I can not add or remove… the directory names are made by radarr and named, so I think it gets the tvdb value from theTVDB… but I manually made that dir name for you.

The “TVShows\TV_Shows” things is that there is a directory in videos called TVShows, but then in that directory there is Docos, Animations, Anime, KidsShows… and more AND a dir called TVShows that has general tvShows in it.

The problem isn’t in the naming or the directories or the permissions, or at least I think it would be very very unlikely, as I have never once in many years ever had a problem of that kind.

I think it is something to do with the database.

I think I might have to just delete the entire library, and the read the directories again… I looked at the rebuilding the database but I do not understand anything on that help page. I couldn’t find any rebuild options in the plex ui

Would it be possible to get a DEBUG logs ZIP file,
Captured after having PMS “Scan Files” for the section(s) with matching problems?

I suspect Database damage

Ok… I think I have done that…

Plex Media Server Logs_2025-10-02_06-34-54.zip (3.9 MB)

Thank you.

Found it.

Oct 01, 2025 21:41:20.358 [22760680033080] DEBUG - Activity: updated activity 5f857703-d0b5-4c1b-9451-deeb2945ad09 - completed 0.0% - Scanning TV (General)
Oct 01, 2025 21:41:20.369 [22760680033080] ERROR - SQLITE3:0x80000001, 11, database corruption at line 91363 of [a29f994989]
Oct 01, 2025 21:41:20.369 [22760680033080] ERROR - SQLITE3:0x80000001, 11, statement aborts at 3: [SELECT di.id FROM directories di WHERE di.library_section_id=:C1] database disk image is malformed
Oct 01, 2025 21:41:20.369 [22760680033080] DEBUG - Activity: Ended activity 5f857703-d0b5-4c1b-9451-deeb2945ad09.

Do you have any database backups you can put in and try?

1 Like

no.. I do not think so…. : (

Is there no way to rebuild it? As Plex dose not use external nfo files it will mean I will have to rename and reposter 1000s of files if I delete the database and redo it : (

is there a plugin or something to auto backup the database?

EdIt : I’m going to implement a backup system for my dockers after this is all sorted, so I can simply restore next time.

I think this will do it but perhaps best to check with the authors
(open an issue)