# Plex Cleanup Analyzer Configuration # ===================================== # Plex Database Path plex_database: "/data/emu/plex/com.plexapp.plugins.library.db-2025-12-14" # *arr Program Configuration # -------------------------- radarr: url: "http://localhost:7878" api_key: "YOUR_RADARR_API_KEY" # Which Plex library IDs map to this Radarr instance library_ids: [2] # Movies library sonarr: url: "http://localhost:8989" api_key: "YOUR_SONARR_API_KEY" # Which Plex library IDs map to this Sonarr instance library_ids: [3, 5] # TV Shows + Anime # Libraries to NEVER touch (excluded from all cleanup operations) # --------------------------------------------------------------- excluded_libraries: - 1 # Movies - 3D (hard to find) - 10 # Sports - Recent # Genres to NEVER delete (protected content) # ------------------------------------------ # These items will be excluded from deletion candidates protected_genres: - "Sport" - "Documentary" # Optional: many extreme sports are documentaries # Title patterns to protect (regex supported) # ------------------------------------------- protected_title_patterns: - "(?i)surf" # Surfing content - "(?i)ski" # Skiing content - "(?i)snowboard" # Snowboarding - "(?i)skate" # Skateboarding - "(?i)bmx" # BMX - "(?i)motocross" # Motocross - "(?i)extreme" # Extreme sports - "(?i)x.?games" # X Games # Cleanup Criteria Defaults # ------------------------- defaults: min_days_in_library: 365 # Must be in library at least this long max_rating: null # null = any rating, or set like 5.0 never_watched_only: true # Only consider unwatched content min_size_gb: 0 # Minimum size to consider # Cleanup Actions # --------------- # What to do when cleaning up: # - "unmonitor_and_delete": Unmonitor in *arr, then delete files (recommended) # - "unmonitor_only": Just unmonitor, don't delete files # - "delete_files_only": Delete files but don't touch *arr (will re-download!) # - "report_only": Just generate report, take no action cleanup_action: "unmonitor_and_delete"