How to Clean up Cache

Hi all,

I have recently deleted 1000’s of Photos and Music items from my PMS, so I think there might be a lot of unnecessary files on the Server.

Is there a way to clean up these files, like Cache etc.?

Note, I have not deleted all the Photos and Music items.

TIA

No ideas anyone?

  1. Scan Files
  2. Empty Trash
  3. Clean Bundles

If you want extra DB compaction:

Lastly, under the “Plex Media Server” directory, with PMS stopped, You can empty the JPEG files.

Don’t “Whack” the whole cache directory as it’ll make a mess with certificates, etc.
Go in and be surgical.

1 Like

Thanks for your reply, it’s much appreciated.

Just confirming this means all the sub-directories under “Plex Media Server”?

NO! It does not mean “ALL directories under Plex Media Server”

My apologies for not being 100% clear.

Go into Plex Media Server/Cache
In there, under those sub directories, you will find JPEG / JPG files.

You may safely delete those.

If you go deleting other JPEG/JPGs freely, you’ll start erasing your metadata

Great, glad I asked.

Won’'t the metadata still be there for all the stuff I deleted?

Off Topic Question: Is the best way to backup PMS to stop PMS and tar the Library folder and all its subs?

If you deleted all the JPGs, the textual parts would be there but the metadata sets wouldn’t be complete. PMS would have to download all of it again (Refresh Metadata) in order to correct it.

The safest backup is always with PMS stopped (DB files are static/closed)

From there tar is, imho, the most portable, fastest, and easiest

tar cf /path/to/somewhere/PlexBackup.tar ./Library

allows you to make the backup as well as move the
PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR easily if you wanted to.

2 Likes

Thank you @ChuckPa, once again you have been very helpful.

Greg

1 Like

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