Media Stuck after being deleted

I deleted a number of TV episodes using Powershell because Media Center buddy did not like my Nvidia driver and caused discoloration, which took me a few weeks to catch up to. All in all i got rid of about 250 episodes which was fine as they should eventually re-record, however it has been 3 weeks and they still show in Plex (Without the trashcan) even after multiple refreshes/updates, emptying of trashcans, etc. When trying to play I get an error to check the media exists.

This is driving me crazy! In the past deleting the content and refreshing has been enough, but now I am not sure if doing it with powershell or the large number has broken something.

Check in the filesystem that those files are definitely gone.
from within plex
run an update library (not refresh library)
then clean bundles
then empty trash

Files are definitely gone. I have been running update library, no change, did the steps you recommended (I had done them previously but did again in your order), still no luck.

were these optimised videos thru plex ?

Nope, I never optimize my videos. They where just MP4 files in a folder.

out of curiosity can you delete them from within plex - u may need to enable owner privilages in plex to delete.
i cant say ive had this issue myself. then again i delete thru the plex system if i need to.

Support article in case you haven’t seen it: Why does content I deleted on my drive still show up?

I would look at the Plex Media server.log and check to see if the database is corrupt - should be signs in that log if this is the case.

Checked the logs and do not see anything about corrupt database. Checked SQLITE database using SQLite tools, it was ok. So I just removed the database and started from scratch, will probably take a while to find the ~10K media items but they should be fine.