A simple command line to remove media from plex
Go to file
Akiya 130802c5c5 add removal with sonarr/radarr 2025-06-09 15:32:46 +02:00
.gitignore add clean of movies 2025-06-07 02:04:40 +02:00
Dockerfile add dockerfile 2025-06-08 21:20:23 +02:00
LICENSE Initial commit 2025-06-07 01:47:43 +02:00
README.md add dockerfile 2025-06-08 21:20:23 +02:00
config.exemple.ini add removal with sonarr/radarr 2025-06-09 15:32:46 +02:00
plexwasher.py add removal with sonarr/radarr 2025-06-09 15:32:46 +02:00
requirements.txt add dockerfile 2025-06-08 21:20:23 +02:00
res.json add removal with sonarr/radarr 2025-06-09 15:32:46 +02:00

README.md

PlexWasher

A simple command line to remove media from plex

Description

This tool will query a Tautulli server to get the path of all files for a media that was not not been watched for a given period. The list will then be written to a file in case the user want to double check before deleting all the listed files.

This tool supports:

  • selection of period a media is not beeing watched before deleting it.
  • whitelist of files to prevent the deletion of a media even if the not watched period is exeeded.

Getting Started

Dependencies

  • python3.10 or newer

Installing

  • Download the source code
git clone https://git.antoinesanchez.fr/Akiya/PlexWasher.git # or download the ZIP from https://git.antoinesanchez.fr/Akiya/PlexWasher/archive/main.zip and extract it
  • Rename 'config.exemple.ini' to 'config.ini' and modify it to set the correct informations

Executing program

  • CMD description:
usage: plexwasher.py [-h] [-v] [-g] [-d] [-o OUTPUT]

options:
  -h, --help            show this help message and exit
  -v, --verbose         Print lots of debugging statements
  -g, --get             Get the list of files to delete and stores the list in a file
  -d, --delete          Read a file listing unwanted files, delete the unwanted files and its parent folders if empty.
  -o OUTPUT, --output OUTPUT
                        Change the default output file.
  • Exemple:
./plexwasher.py --get

License

This project is licensed under the Apache-2.0 License - see the LICENSE file for details