Removing (insane amounts of) old data?

Server Version#:Windows
Player Version#:
I’m getting overflowed with data from Plex. Even after removing all Libraries the media folder is still filled up. Windows spends a couple of hours counting the insane number of folders and files. Last count was almost 700,000 folders and over half a million of files!!
Now I’m trying to start afresh, but I’m not allowed to neither rename or delete the the N:/Plex folder, where I kept the local data files. I changed the Registry LocalAppDataPath to N:/Plexi, which made Plex create a new folder tree. (I didn’t start Plex Media server until after the registry change).
But I’m still not allowed to remove the old folder, because “it is in use”. How am I supposed to remove this?
I managed to move everything inside the folder to a different folder on the root of N:, except for the Logs folder.
But I want to remove all of it!
BTW, why on earth are you creating all those folders/files? Windows hates folders with much more than a million folders/files inside. Why not use a database instead?

Your Media and The Plex Database are two very different things.

  1. Your Media doesn’t go in the Plex Database.
  2. There are a million teeney little files and folders in there.

If you generate Video Preview Thumbnails/Chapter Thumbnails your Plex Database can get rather hefty rather quickly - and moving it to a local drive away from the itty-bitty SSD is now a PITA.

That disaster aside - it sounds like you’ve been putting your media in with Plex’s Secret Server Files - please tell me I’m wrong - or fix it.

Sorry, but I’ve never even heard about the Secret Server files? I’d love to fix it, if I can though. But the main problem right now is to get rid of the main Plex database folder and the Logs folder inside it…

Plex needs those files, Buddy.

You can’t go in there and ‘trim’ anything. That’s Plex’s Database.

It’s like if you went into The Registry to change the location of the Plex Database and deleted 100 other things - just to clean up a bit.

Instant Blue Screen of Death is the next step I think.

I don’t know much about these things - because my stuff always works better when I don’t go in those places - but I do know I’m not messin around in The Registry or Plex’s Data 'cause I’d like the server machine and Plex to continue to work.

After doing that, tell Plex to empty trash, clean bundles and optimize database.

Apart from that, see https://support.plex.tv/articles/202529153-why-is-my-plex-media-server-directory-so-large/

The problem now is not to empty trash and all that, becauser I already gave up on that task, and started a new Database in a new main folder.
The problem now is that Plex still have a lock onat old Plex folder and the Logs folder inside it. And neither Explorer nor cmd in Adinistrator mode will let me remove it.
How can I tell Plex to unlock it?

By shutting down Plex server, I guess.

P.S.
Reads this how-to, particularly the “Addendum” part:

Well, fortunately I never kept them on my system drive. Earlier we could change their location from inside the settings. After I quit Plex I was finally allowed to delete the old files and folders, using cmd with the rmdir command in administrator mode. Although not that many GBs it was almost 1.4 millions of files and folders in the media folder alone, and Windows spent more than 8 hours deleting the entire Plex folder !! Surely there must be better and more efficient ways to store such data?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.