{"id":13522010,"url":"https://github.com/rfsbraz/deleterr","last_synced_at":"2026-03-10T21:05:07.384Z","repository":{"id":185864230,"uuid":"673985636","full_name":"rfsbraz/deleterr","owner":"rfsbraz","description":"  Automated Plex media cleanup with watch-based rules, smart exclusions, and \"Leaving Soon\" notifications via Radarr, Sonarr \u0026 Tautulli.","archived":false,"fork":false,"pushed_at":"2026-03-10T17:35:30.000Z","size":1771,"stargazers_count":272,"open_issues_count":26,"forks_count":8,"subscribers_count":6,"default_branch":"main","last_synced_at":"2026-03-10T19:21:17.238Z","etag":null,"topics":["overseerr","plex","plex-media-server","plex-server","python","radarr","radarr-api","sonarr","sonarr-api","sonarr3","tautulli","tautulli-api"],"latest_commit_sha":null,"homepage":"https://rfsbraz.github.io/deleterr/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rfsbraz.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":"rfsbraz","buy_me_a_coffee":"rfsbraz"}},"created_at":"2023-08-02T22:05:27.000Z","updated_at":"2026-03-08T22:15:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"ed7a4130-29bc-4899-906a-054748099d15","html_url":"https://github.com/rfsbraz/deleterr","commit_stats":null,"previous_names":["rfsbraz/deleterr"],"tags_count":42,"template":false,"template_full_name":null,"purl":"pkg:github/rfsbraz/deleterr","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rfsbraz%2Fdeleterr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rfsbraz%2Fdeleterr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rfsbraz%2Fdeleterr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rfsbraz%2Fdeleterr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rfsbraz","download_url":"https://codeload.github.com/rfsbraz/deleterr/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rfsbraz%2Fdeleterr/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30355223,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T15:55:29.454Z","status":"ssl_error","status_checked_at":"2026-03-10T15:54:58.440Z","response_time":106,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["overseerr","plex","plex-media-server","plex-server","python","radarr","radarr-api","sonarr","sonarr-api","sonarr3","tautulli","tautulli-api"],"created_at":"2024-08-01T06:00:40.938Z","updated_at":"2026-03-10T21:05:07.376Z","avatar_url":"https://github.com/rfsbraz.png","language":"Python","funding_links":["https://github.com/sponsors/rfsbraz","https://buymeacoffee.com/rfsbraz"],"categories":["Software","Python","Complimenting Apps"],"sub_categories":["Media Management"],"readme":"# Deleterr\n\n[![CI](https://github.com/rfsbraz/deleterr/actions/workflows/ci.yml/badge.svg)](https://github.com/rfsbraz/deleterr/actions/workflows/ci.yml)\n[![Python 3.9+](https://img.shields.io/badge/python-3.9+-blue.svg)](https://www.python.org/downloads/)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n[![Docker Pulls](https://img.shields.io/docker/pulls/rfsbraz/deleterr)](https://hub.docker.com/r/rfsbraz/deleterr)\n[![GitHub Release](https://img.shields.io/github/v/release/rfsbraz/deleterr)](https://github.com/rfsbraz/deleterr/releases)\n[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=rfsbraz_deleterr\u0026metric=alert_status)](https://sonarcloud.io/summary/new_code?id=rfsbraz_deleterr)\n[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=rfsbraz_deleterr\u0026metric=coverage)](https://sonarcloud.io/summary/new_code?id=rfsbraz_deleterr)\n\n**Intelligent media library cleanup for Plex.**\n\nDeleterr uses Radarr, Sonarr, and Tautulli to identify and delete media files based on user-specified criteria like watch history, age, and streaming availability.\n\n## Key Features\n\n- **Smart Exclusions** - Protect content by genre, actor, collection, streaming availability (JustWatch), Trakt lists, and more\n- **Watch-Based Rules** - Delete only unwatched content, or content not watched in X days\n- **Multi-Instance Support** - Manage multiple Radarr/Sonarr instances (regular + 4K libraries)\n- **Dry Run Mode** - Preview what would be deleted before enabling real deletions\n- **Leaving Soon Collections** - Warn users before content is removed with Plex collections and notifications\n- **Built-in Scheduler** - Runs on a schedule automatically (daily, weekly, or custom cron)\n\n## Documentation\n\n- **[Getting Started](https://rfsbraz.github.io/deleterr/getting-started)** - Docker setup and first run\n- **[Configuration Reference](https://rfsbraz.github.io/deleterr/CONFIGURATION)** - All settings explained\n- **[Templates](https://rfsbraz.github.io/deleterr/templates)** - Copy-paste ready configurations\n\n## WARNING\n\n* **DO NOT USE THIS WITH MEDIA CONTENT YOU CAN'T AFFORD TO LOSE**\n* Turn on the recycle bin in your Sonarr/Radarr settings if you want to be able to recover deleted files (not recommended for remote mounts)\n\n## Quick Start\n\n### Docker Compose\n\nDeleterr includes a built-in scheduler that runs automatically. Here's an example that runs weekly:\n\n```yaml\nservices:\n  deleterr:\n    image: ghcr.io/rfsbraz/deleterr:latest\n    container_name: deleterr\n    environment:\n      LOG_LEVEL: INFO\n    volumes:\n      - ./config:/config\n    restart: unless-stopped\n```\n\nBy default, Deleterr runs weekly on Sunday at midnight. Configure the schedule in your `settings.yaml`:\n\n```yaml\nschedule:\n  cron: \"0 0 * * 0\"  # Every Sunday at midnight (default)\n  # cron: \"0 3 * * *\"  # Daily at 3 AM\n  # cron: \"0 0 * * 0,3\"  # Sundays and Wednesdays at midnight\n```\n\n### Portainer\n\nWhen deploying with Portainer, you may encounter a bind mount error like:\n```\nError response from daemon: Bind mount failed: '/path/to/config' does not exist\n```\n\nThis happens because Portainer (unlike `docker-compose` CLI) does not automatically create host directories for bind mounts.\n\n**Option 1: Enable \"Create path on host\" in Portainer (Recommended)**\n\nWhen adding the stack in Portainer:\n1. Go to **Stacks** → **Add stack**\n2. After pasting your compose file, scroll down to **Advanced options**\n3. Enable **\"Create path on host if it doesn't exist\"** (available in Portainer CE 2.19+ / BE 2.16+)\n\n**Option 2: Create directories manually**\n\nBefore deploying the stack, SSH into your server and create the required directories:\n\n```bash\nmkdir -p /path/to/your/deleterr/config\n```\n\nThen use absolute paths in your stack:\n\n```yaml\nservices:\n  deleterr:\n    image: ghcr.io/rfsbraz/deleterr:latest\n    container_name: deleterr\n    environment:\n      LOG_LEVEL: INFO\n    volumes:\n      - /path/to/your/deleterr/config:/config\n    restart: unless-stopped\n```\n\n**Option 3: Use named volumes**\n\nNamed volumes are automatically created by Docker and don't require host directories:\n\n```yaml\nservices:\n  deleterr:\n    image: ghcr.io/rfsbraz/deleterr:latest\n    container_name: deleterr\n    environment:\n      LOG_LEVEL: INFO\n    volumes:\n      - deleterr_config:/config\n    restart: unless-stopped\n\nvolumes:\n  deleterr_config:\n```\n\n\u003e **Note**: With named volumes, you'll need to place your `settings.yaml` file inside the volume. You can do this by first starting the container, then copying the file using `docker cp settings.yaml deleterr:/config/settings.yaml`.\n\n### Docker CLI\n\nSet your settings file in `config/settings.yaml` and run:\n\n```bash\ndocker run -v ./config:/config ghcr.io/rfsbraz/deleterr:latest\n```\n\nFor a one-time run (no scheduler), add `--run-once`:\n\n```bash\ndocker run -v ./config:/config ghcr.io/rfsbraz/deleterr:latest --run-once\n```\n\n## Leaving Soon: Give Users Time to Watch\n\nThe **Leaving Soon** feature implements a \"death row\" pattern that warns users before content is removed:\n\n1. **First run**: Items matching deletion criteria are tagged with a \"Leaving Soon\" collection/label\n2. **Users get notified**: Via email, Discord, Slack, or Telegram with a list of expiring content\n3. **Grace period**: Users can watch the content before the next scheduled run\n4. **Next run**: Previously tagged items are deleted, new candidates are tagged\n\nThis creates a Netflix-like experience where users see what's leaving and can prioritize their watchlist.\n\n```yaml\n# Example: Enable Leaving Soon with notifications\nlibraries:\n  - name: \"Movies\"\n    radarr: \"Radarr\"\n    action_mode: \"delete\"\n    max_actions_per_run: 20\n    leaving_soon:\n      collection:\n        name: \"Leaving Soon\"\n      labels:\n        name: \"leaving-soon\"\n\nnotifications:\n  leaving_soon:\n    subject: \"Content leaving your Plex server soon!\"\n    email:\n      smtp_server: \"smtp.gmail.com\"\n      to_addresses: [\"family@example.com\"]\n```\n\n## Configuration\n\nDeleterr is configured via a YAML file. An example configuration file, `settings.example.yaml`, is provided. Copy this file to `settings.yaml` and adjust the settings as needed.\n\nPlease refer to the [configuration guide](https://rfsbraz.github.io/deleterr/CONFIGURATION) for a full list of options and their descriptions.\n\n## Image Availability\n\nThe image is available through:\n\n* [GitHub Container Registry](https://github.com/rfsbraz/deleterr/pkgs/container/deleterr): `ghcr.io/rfsbraz/deleterr:\u003ctag\u003e`\n* [Docker Hub](https://hub.docker.com/r/rfsbraz/deleterr): `rfsbraz/deleterr:\u003ctag\u003e`\n\n### Tags\n\n* `latest`: The latest stable release\n* `edge`: The latest development build (from main branch)\n* `X.Y.Z`: A specific version\n* `X.Y`: The latest release in the vX.Y series\n* `X`: The latest release in the vX series\n\n## Support\n\nIf you find this useful and want to support development, you can [buy me a coffee](https://buymeacoffee.com/rfsbraz) - no pressure at all, just a nice way to say thanks.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frfsbraz%2Fdeleterr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frfsbraz%2Fdeleterr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frfsbraz%2Fdeleterr/lists"}