A command-line tool for managing and curating Plex Media Server content.
- Connect to your Plex server securely
- List all empty collections across your libraries
- Delete empty collections with confirmation
- Batch operations with force option to skip confirmations
pip install plexcontentmanagerIf you encounter an "externally-managed-environment" error, use one of these alternative installation methods:
# Install pipx if not already installed
pip install --user pipx
pipx ensurepath
# Install plexcontentmanager
pipx install plexcontentmanager# Create a virtual environment
python -m venv venv
# Activate the virtual environment
source venv/bin/activate # On Windows: venv\Scripts\activate
# Install plexcontentmanager
pip install plexcontentmanagergit clone https://github.com/apb-hello-world/plexcontentmanager.git
cd plexcontentmanager
pip install -e .First, configure your Plex server connection:
plexcontent config --server "https://your-plex-server:32400" --token "your-plex-token"You can view your current configuration:
plexcontent configVerify that your connection to the Plex server is working:
plexcontent test-connectionList all empty collections:
plexcontent list-empty-collectionsDelete empty collections (with confirmation):
plexcontent delete-empty-collectionsDelete empty collections without confirmation:
plexcontent delete-empty-collections --forcehttps://support.plex.tv/articles/204059436-finding-an-authentication-token-x-plex-token/
This application stores your Plex token locally in ~/.plexcontentmanager/config.json. The token is:
- Never transmitted to any server other than your specified Plex server
- Stored as plaintext in the configuration file
- Only used to authenticate with your Plex server
For security reasons:
- The source code is available on GitHub for review
- You can optionally use a dedicated Plex account with limited permissions for this tool
- You can delete the configuration file (
~/.plexcontentmanager/config.json) when not in use