Clean up your Plex library. You decide what to delete.

Phlexerr shows which movies and shows you can delete. When you click Delete, it deletes them from Plex, Radarr, Sonarr and Seerr (Overseerr or Jellyseerr). It never deletes on a timer.

Free and open source (MIT). It starts in dry-run mode. The name sounds like “flex-er”.

Release notes

Try it: Prune

Dry run

    Select titles to see the space that you can free.

    This demo uses public-domain films. The real app runs on your own server.

    Your users request everything.

    Every “just one more season” and “I will definitely watch that someday” request goes to your server. The drives become full. You must decide what to delete, but you have no good way to see which titles are safe to delete.

    Most cleanup tools run rules on a schedule and delete titles for you. Phlexerr is for people who want to look first and click Delete themselves. A safety check protects each click.

    Each risk and the safety check that stops it

    Phlexerr can delete files permanently. Each risk below has a safety check.

    Phlexerr deletes nothing until you turn dry-run off
    Each run, including your first run, only reports what would happen. To delete for real, set DRY_RUN=false on the container.
    Each real deletion needs you to type DELETE
    The dialog lists each title and the space that it frees. A wrong click cannot delete anything.

    Before anything is deleted

    Another person gets your login
    You can turn off dry-run only with DRY_RUN=false on the container. You cannot turn it off from the web page.
    You do not change the default password
    The default password is YYZ. It makes the first install fast. A banner shows a warning until you set your own password.
    A task runs while you sleep
    No task runs. Phlexerr has no schedules. The optional Leaving Soon row on Plex Home only puts labels on titles.

    When you click Delete

    You select a favourite title by mistake
    You cannot select titles that a rule protects or that you mark Keep. The server also refuses them if the request comes from an old page.
    A batch is too large
    The default limit for a batch is 200 titles.

    Afterwards

    Radarr or Sonarr cannot delete a title
    Phlexerr does not change Seerr for that title. In this way, the records stay the same in all apps.
    You need to know what happened
    Phlexerr records each attempt, real or dry, in the deletion log and in the History tab.

    Everything in one place

    Each day, you do not need to open Radarr, Sonarr, Seerr or Tautulli. Phlexerr puts them together and does the follow-up tasks for you. You use those apps only for their own setup.

    What one deletion does
    1. You click Deleteand type DELETE to confirm
    2. Radarr or Sonarrdeletes the title and its files
    3. Seerrclears the request, but only after step 2 succeeds
    4. Plexscans the library again and empties its trash
    5. Historyrecords the deletion and the space freed

    Prune: see which titles you can delete

    Prune shows a list or a card view that you can sort. For each title, it shows the IMDb rating, date added, last watched date and percent viewed. It also shows the plays in the past year, the size and the person who requested the title. Each selection shows the space that it frees before you confirm.

    Quick filters: one click for common jobs

    • Unrequested downloads: titles added in the last 30 days that nobody requested in Seerr and nobody watched in 14 days. Use it to find content that a list or an automation added.
    • Never watched: titles added more than 365 days ago that nobody watched.
    • Stale 2+ years: titles that nobody watched in 730 days.
    • Low rated: titles with an IMDb rating of 6 or lower and no plays in the past year.
    • Large files: titles of 20 GB or more that nobody watched in 365 days. Use it to free the most space with the fewest deletions.
    • Leaving soon and Past due: titles that you marked with a date.

    You can change the values after you click a quick filter. Phlexerr shows the number of titles and the space that they free.

    Advanced filters: full control

    Combine as many filters as you need. For example, show only animation of 10 GB or more that nobody watched in 365 days.

    • Search and type: title text, movie or show, library, collection and requester
    • Watching activity: watched or never watched, days since the last play, plays in the past year and percent viewed
    • Age and date: days since added, added in the last number of days and released before a year
    • Ratings and size: maximum IMDb rating, unrated titles (include, hide or only), minimum size in GB, animation (include, hide or only) and Leaving Soon status
    • Protected titles are hidden by default. Reset all clears every filter.

    The requester filters need Seerr. The Leaving Soon filters need that feature to be on. Prune works when only Plex is connected.

    Prune on a computer: quick filters, advanced filters and the space that you can free Prune on a phone: each title as a card with IMDb rating, date added, last viewed, percent viewed, plays and size

    Protect: lock the titles that you like

    Lock titles by actor (or by top-billed actor only), director, studio, collection or keyword. Or mark one title Keep. You cannot select Protected titles or Keep titles. The server also refuses them if the request comes from an old page. A live preview shows what a rule protects before you add it.

    • Wildcards, for example Marvel* or Tom *
    • Export your rules. Import them on another server
    Protect tab with rules by actor, director, studio, collection and keyword
    History tab showing space freed and every deletion

    History: the space that you recovered

    History shows each deletion, the total space freed, the last 30 days, a 12-month chart and your biggest deletions. If you change your mind, click once to request a title again. History shows when the title comes back to Plex.

    Prune list with Leaving Soon badges showing a date

    Leaving Soon: an optional warning for your users

    Titles that you select show in a Leaving Soon row on your Plex Home, with a date. The row is only a label. When the date passes, nothing happens until you delete the title yourself. This feature is off by default.

    Request tab with Browse rows and Seerr-style status badges

    Request: find a title, request it, cancel it

    Search for a movie or show and request it through Seerr. The status badges are the same as in Seerr. Browse Trending, Popular, Upcoming and your streaming services. Filter by year, rating and the titles that you already have. You can also cancel requests. Each available title has a Delete button. It opens the same safe dialog as Prune.

    Activity tab with live now-playing cards

    Activity: who is watching now

    Activity shows live now-playing cards and a full watch history. It has a Stop button with an optional message to the viewer. Click an IP address to see its approximate location. You must turn on this option first. This tab needs Tautulli.

    Design your own Plex Home rows

    Phlexerr also lets you choose what each user sees first when they open Plex.

    Custom rows on the Plex Home screen: Released On This Day and Apocalypse & The End of the World
    Build a row for any topic
    Select titles by actor, director, studio, collection, genre, tag or title keyword. Then narrow the list by rating, recently added or never watched. Sort by date added, rating, year, times watched or random order.
    Follow a list from another site
    Paste an IMDb or MDBList link, or upload a CSV file. The row then shows the titles from that list that you already have in Plex. The row changes when the list changes. You can request the missing titles through Seerr. Phlexerr requests nothing automatically.
    Everyone sees it
    Rows are pinned to your Home. They can also show on the Home screens of other users, in the order that you choose. This feature only creates and edits Plex collections. It never deletes media.

    Phlexerr also has a built-in Released On This Day row. You can drag and drop to put any collection in order. Read the Feature guide for all features.

    How it compares

    These tools have some of the same features, but they solve different problems. Choose the tool that does what you need.

    PhlexerrPrunerrMaintainerrJanitorrCleanuparrCheckrr
    Main jobReview and delete by handRules put titles in a review queue with grace periodsRule-based media cleanupAutomatic media cleanupClean stalled or failed downloadsFind corrupt media files
    Who decides what to deleteYou, with a review screenRules, then you approveRules, on a scheduleRules, on a scheduleRules (download queue, not your library)Reports problems
    Manual, title-by-title controlYes. This is the main purpose of PhlexerrApproval queueLimitedLimitedNoNo
    Dry-run before anything happensYes, on by defaultNot describedVaries by setupYes (setting)Yes (setting)Report-only
    Warn viewers before deletionOptional Leaving Soon rowUpcoming-deletions viewYes, automaticYes, automaticNoNo
    Search and request titles (Seerr)Yes, with status badgesResets Seerr requests after deletionNoNoNoNo
    Custom Plex Home rowsYesNoCollectionsNoNoNo
    Live “who is watching” and Stop streamYes (with Tautulli)NoNoNoNoNo
    Space-freed historyYesStorage trendsNoNoNoNo
    Jellyfin / EmbyNo (Plex only)YesYesYes (Jellyfin, Emby)n/an/a
    Needs Radarr / SonarrNo, optionalRecommendedOptionalYesYesOptional

    This table uses the public description of each project at the time of writing. The projects change, so read their pages before you decide. They do their jobs well, and they can run together with Phlexerr. If you want rules and automation, or if you do not use Plex, use one of them. If you want to look at your library, decide, and click the button yourself, use Phlexerr.

    Install in a few minutes

    You need only Plex. Tautulli, Radarr, Sonarr, Seerr and MDBList are optional. You can add them at any time on the Settings page.

    Open the Apps tab in Unraid. Search for Phlexerr and click Install. Keep DRY_RUN set to true. Click Apply.

    If you do not see Phlexerr yet, add the template manually. Open the Unraid terminal (the >_ icon, top right) and run this command:

    wget -O /boot/config/plugins/dockerMan/templates-user/Phlexerr.xml https://raw.githubusercontent.com/Dusza/Phlexerr/main/Phlexerr.xml

    Then open the Docker tab and click Add Container. Select Phlexerr from the template dropdown list.

    Get it on Unraid Community Apps

    First run

    1. Sign in. Open http://YOUR-SERVER-IP:2112. On the same machine, you can use http://localhost:2112. If you did not set a password, the password is YYZ. Change it before other people can reach the page.
    2. Connect Plex. Open Settings and enter your Plex URL and token. Skip this step if you already put them in .env. Use the LAN IP address of your server, for example http://192.168.1.10:32400. Do not use localhost. Each optional service has a Test connection button.
    3. Refresh the data. Click Save & refresh data. The first refresh reads your complete library. It can take a few minutes.
    4. Browse Prune. While the Dry run badge shows, Phlexerr deletes nothing. Turn on real deletion only when the reports are correct. Set DRY_RUN=false on the container (or in .env for Compose) and recreate the container. On Unraid, edit the container, change DRY_RUN to false and click Apply.

    You need

    • Docker (Unraid includes it)
    • A Plex server, with its URL and token
    • A folder for Phlexerr’s settings and history

    You can add later

    • Tautulli: play counts for all users, and the Activity tab
    • Radarr and Sonarr: real file sizes and ratings, and deletion through these apps
    • Seerr (Overseerr or Jellyseerr): who requested each title, new requests for deleted titles and requests for missing titles
    • MDBList key: to follow private MDBList lists

    Questions

    Does it delete anything automatically?

    No. Phlexerr has no schedules and no background deletions. You click each Delete button and type DELETE to confirm. The optional Leaving Soon row only puts labels on titles.

    Can I undo a deletion?

    You cannot recover the files. A real deletion deletes them through Radarr or Sonarr and empties the Plex trash. For this reason, Phlexerr starts in dry-run mode. Each deletion stays in History. The Re-request button there sends the title to Seerr to download it again.

    Does it work with Jellyfin or Emby?

    No. Phlexerr works only with Plex.

    Do I need Radarr, Sonarr, Seerr or Tautulli?

    No. You need only Plex. Without Tautulli, play data comes only from your own Plex account. Without Radarr and Sonarr, Phlexerr deletes titles through Plex. Without Seerr, the app hides the request features and tells you why.

    Where does Phlexerr store my API keys?

    Phlexerr saves the keys that you enter on the Settings page in settings.json in your data folder. Only the container user can read this file. After you save a key, Phlexerr never sends it back to your browser. Do not share your data folder or your Unraid template file.

    Is it safe to connect it to the internet?

    Phlexerr has a password login, login throttling and CSRF protection. But it can delete files, so do not expose it alone. Set COOKIE_SECURE=true and TRUST_PROXY=true. Use a tunnel or a reverse proxy with HTTPS. Add an access layer in front, for example Cloudflare Access or a VPN such as Tailscale.

    Does it work on a phone?

    Yes. On a phone, the table changes to cards and the filters collapse. You can add Phlexerr to your Home Screen as an app.

    Where do I get help or report a problem?

    Open an issue on GitHub. To report a security problem, use the Security tab of the repository. Do not report it in public.

    Look before you delete.

    Install Phlexerr and keep dry-run mode on. Then see how much space you can free.