Cleaning Plex Server Files

Server Version#: Version 1.25.2.5319
Player Version#: n/a

I run Plex from a docker on a remote server with limited storage. It irks me that there are so many logs and files created by Plex, often no longer needed.

e.g. I found I had 5 plugins (but Plex stopped supporting Plugins) so I tried to uninstall but could not so had to delete the directories manually.

Plex is a storage hog NOT for the actual videos etc but for all the meta data…
If we assume Plex is working reliably, is there some clever tool to thin out all that cruft?

Logs roll over, so should not be a problem

Metadata files are used by Plex, and to clean up old no longer used files, make sure that in the Settings/Scheduled Tasks have the following tasks selected:

Remove old bundles every week
Remove old cache files every week

In additional to what @dane22 says I also weekly purge this stuff via a cronjob …

sudo rm -rf /var/lib/plexmediaserver/Library/Application\ Support/Plex\ Media\ Server/Plug-in\ Support/Caches/*
sudo rm -rf /var/lib/plexmediaserver/Library/Application\ Support/Plex\ Media\ Server/Plug-in\ Support/Data/*
sudo rm -rf /var/lib/plexmediaserver/Library/Application\ Support/Plex\ Media\ Server/Plug-in\ Support/Metadata\ Combination/*
sudo rm -rf /var/lib/plexmediaserver/Library/Application\ Support/Plex\ Media\ Server/Cache/PhotoTranscoder/*

Just make sure plex is NOT running when you delete this stuff.

Thanks, already had dane22’s tips enabled… but will add dokuro’s :slight_smile:

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