Phlexerr

Phlexerr

Docker app from Dusza's Repository

Clean up your Plex library on your own terms.

Requirements

Plex Media Server (required). Tautulli, Radarr, Sonarr and Seerr are optional.
Overview
Clean up your Plex library on your own terms. Review what is worth deleting (ratings, last watched, size, who requested it), then delete by hand from Plex, Radarr, Sonarr and Seerr. Nothing is ever removed on a timer or behind your back, and it starts in dry-run mode. One dashboard replaces most trips into Radarr, Sonarr, Seerr and Tautulli. Also builds custom Plex Home rows (including from IMDb and MDBList lists), lets you search and request titles through Seerr, shows live Plex activity, and keeps a history of the space you have freed.

Phlexerr: clean up your Plex library on your terms

Pronounced "flex-er" (Plex + "ph" + "err")
Review what is worth deleting. You decide. Nothing is removed on a timer or behind your back.
One dashboard for your whole stack, plus custom Plex Home rows you design yourself.

build license docker unraid mode

Install • What you need • First-run setup • Safety • Feature guide • Compare


Born from a simple problem: your users request everything. Every "just one more season" and "I'll definitely watch that someday" lands on your server, and the drives fill up. Phlexerr is how you take the library back, kindly and on your own schedule.

Most cleanup tools run rules on a schedule and delete for you. Phlexerr is built for people who would rather look first and click the button themselves, with a safety net around every click.

It also brings the tools you already run onto a single dashboard: Plex for your library, Tautulli for watch history and who is streaming right now, Radarr and Sonarr for the files behind each title, and Seerr for who requested what. See it all in one place, act on it, and rarely have to leave.

Prune: review candidates with ratings, sizes, last-watched dates and who requested them
Prune: see exactly what is worth deleting and how much space you'd get back. Screenshots are for demonstration only, see note.

Your Plex Home, your way

Cleaning up is half the story. Phlexerr also lets you design the rows on your Plex Home screen, so the best of your library is the first thing everyone sees.

Plex Home Screen tab: build custom rows from criteria or lists and keep them in sync

  • Build any row you can imagine. Pick by actor, director, studio, collection, genre, tag or title keyword, then narrow by rating, recently added or never watched. Sort it by date added, rating, year, times watched, or shuffled.
  • Follow a list. Paste an IMDb or MDBList link (or upload a CSV) and the row holds the titles from that list you already have in Plex. It updates as the list changes.
  • Request what is missing. For a list-based row, see the titles you don't have, check each against Seerr, and request the ones you want in one click.
  • "Released on this day." A built-in nostalgia row of movies whose release anniversary is today, with your own timeframe, minimum rating and genres.
  • Your own order. Drag titles into any sequence, for example a story timeline, and Phlexerr writes that order into the Plex collection.
  • Everyone sees it. Rows are pinned to Home and can also show on other users' Home screens. They re-sync after every refresh, in the order you choose.
  • Safe by design. This only creates and edits Plex collections. It never deletes media.
Titles on a list that are not in Plex yet, with Seerr status and a Request button
Request what is missing. See which titles from a list aren't in Plex, check each against Seerr, and request them in one go.
Arrange titles screen with drag handles and position numbers
Your own order. Drag titles into any sequence, such as a story timeline, and it is written into the Plex collection.

Why Phlexerr

You are always the one who deletes. No schedules, no background deletions, no "the rule matched at 3 a.m." surprises. Every delete is a button you pressed.

One dashboard for your whole stack. Plex, Tautulli, Radarr, Sonarr and Seerr come together in one app. Prune from the library view, watch live streams, search and request new titles, and build Plex Home rows without hopping between five tabs.

Review before you act. A sortable list or card view with ratings, file sizes, last-watched dates and who requested each title, so you can make the call with the facts in front of you.

Tame the request button. See who requested each title and whether anyone ever pressed play. Prune it, and if they really do want it back later, they can request it again. You can even search and request new titles from inside Phlexerr.

See the space you win back. Every selection shows how much it will free before you confirm, and the History tab keeps a running total of what you've reclaimed.

Dry-run by default. You get an exact report of what would happen until you choose to turn deleting on, and that switch can't be flipped from the web page.

Protection that actually protects. Lock titles by actor (even top-billed only), director, studio, collection or keyword. Protected titles can't be selected, and the server refuses them even from an old page.

Warn people first, only if you want to. An optional, off-by-default Leaving Soon row puts titles you picked on your Plex Home with a date. When the date passes, nothing happens until you delete them.

Starts with only Plex. Tautulli, Radarr, Sonarr and Seerr are optional extras, and the app works around any you don't have.

A tour

Request tab with Seerr-style status badges
Request
Search any movie or show and request it through Seerr, browse Seerr-style groups such as Trending or Netflix (you choose which), see who requested what recently, and cancel requests. Status badges (Available, Pending, Requested, Partially available) match what Seerr shows.
History tab with space freed
History
Everything you've deleted, the space freed, and a one-click Re-request if you change your mind.
Activity tab with live now-playing cards
Activity
Live "now playing" cards, a full watch history, and a Stop button (with an optional message to the viewer). Needs Tautulli.
Protect tab with protection rules
Protect
Lock favorites by actor, director, studio, collection or keyword so they can never be selected.
Prune list with Leaving Soon badges showing a date
Leaving Soon (optional)
Mark titles with a date and, if you turn it on, they appear as a row on your Plex Home. Nothing is deleted when the date passes. You decide.
Phlexerr on a phone
On your phone
The whole app works on a phone, so you can prune from the couch.

How it compares

These tools overlap a little but solve different problems. Pick by what you want done.

Phlexerr Prunerr Maintainerr Janitorr Cleanuparr Checkrr
Main job Review and delete by hand Rules feed a review queue with grace periods Rule-based media cleanup Automatic media cleanup Clean stalled or failed downloads Find corrupt media files
Who decides what is deleted You, with a review screen Rules, then you approve Rules, on a schedule Rules, on a schedule Rules (download queue, not your library) Reports problems
Manual, title-by-title control Yes, it is the whole design Approval queue Limited Limited No No
Dry-run before anything happens Yes, on by default Not described Varies by setup Yes (setting) Yes (setting) Report-only
Warn viewers before removal Optional Leaving Soon row Upcoming-deletions view Yes, automated Yes, automated No No
Search and request titles (Seerr) Yes, with status badges Resets Seerr requests on delete No No No No
Custom Plex Home rows Yes No Collections No No No
Live "who is watching" and Stop stream Yes (with Tautulli) No No No No No
Space-freed history Yes Storage trends No No No No
Jellyfin / Emby No (Plex only) Yes Yes Yes (Jellyfin, Emby) n/a n/a
Needs Radarr / Sonarr No, optional Recommended Optional Yes Yes Optional

Based on each project's public description at the time of writing; those projects change, so check their pages before deciding. They are good at what they do, and they can run alongside Phlexerr. If you want rules and automation, or you don't use Plex, look at them. If you want to see your library, decide, and press the button yourself, use Phlexerr.

What it does

  • Prune: find movies and shows worth deleting (never watched, stale, low rated, large, unrequested downloads) and delete them, optionally cleaning up Radarr, Sonarr and Seerr at the same time.
  • Protect: lock titles so they can never be deleted. Export your rules to a file and import them on another server or after a reinstall.
  • Plex Home Screen: build your own Home rows from criteria or IMDb/MDBList lists, add a daily "Released on this day" row, put titles in your own order, and request what's missing through Seerr.
  • Request: search for any movie or show and request it through Seerr, with live status badges (needs Seerr).
  • Activity: live "now playing" cards, a full watch history, and a Stop button for a stream (needs Tautulli). Optionally click an IP address to see where it is (city, provider, timezone) via the free ip-api.com service; off by default.
  • History: everything deleted, and the space freed.
  • Leaving Soon (optional): warn viewers before you delete, without automating anything.

Phlexerr can permanently delete files. It starts in dry-run mode, where nothing is deleted and you get a report of what would happen. Read Safety before you turn dry-run off.

Phlexerr is an independent project and is not affiliated with or endorsed by Plex, Tautulli, Radarr, Sonarr, Seerr or IMDb. Those names belong to their owners.

Required vs optional

Required (you can't start without these):

What Why Where it goes
Docker Phlexerr runs as a container Unraid already has it
An app password Protects the web page Container setting APP_PASSWORD. Default: YYZ (see below)
A folder for its data Keeps your settings and history between updates Mapped to /config (the template does this for you)
Plex URL and Plex token The library it works on Settings page (or container settings)

Optional (add any, any time, from the Settings page):

Service What you gain What happens without it
Tautulli Play counts and last-watched across all users, plus the Activity tab Play data comes from your own Plex account only, and Activity asks you to connect it
Radarr / Sonarr Real file sizes and ratings, and deleting through them Titles are deleted through Plex instead
Seerr (Overseerr / Jellyseerr) "Requested by", re-requesting deleted titles, requesting missing titles Those parts are hidden and the app says why
MDBList key Following private MDBList lists Public lists work without it

You don't need to fill in anything optional up front. DRY_RUN is also a container setting; it defaults to true (safe) and you only change it when you are ready to delete for real.

Install

Pick one.

Unraid (ready-made image)

  1. Open the Unraid terminal (the >_ icon, top right) and download the template onto your server:
    wget -O /boot/config/plugins/dockerMan/templates-user/Phlexerr.xml https://raw.githubusercontent.com/Dusza/Phlexerr/main/Phlexerr.xml
    
    (That folder is on the Unraid flash drive, which isn't a normal share, so downloading it from the terminal is easier than copying a file.)
  2. Docker tab, Add Container, pick Phlexerr from the template dropdown.
  3. Leave DRY_RUN as true. The App password is pre-filled with the default, YYZ, so you can just click Apply to get started. Change it before anyone else can reach the page. That is all the container needs. Plex and the optional services are entered on the web page next. Click Apply.
  4. Open http://YOUR-SERVER-IP:2112, sign in, and Phlexerr will ask for your Plex details.

Docker Compose

git clone https://github.com/Dusza/Phlexerr.git && cd phlexerr
cp .env.example .env        # optional: set APP_PASSWORD (default is YYZ)
docker compose up -d --build

Open http://localhost:2112. Your settings are stored in ./data.

Docker run

docker run -d --name phlexerr --restart unless-stopped -p 2112:8080 \
  -e APP_PASSWORD='choose-a-password' -e DRY_RUN=true \
  -v /path/to/phlexerr-data:/config ghcr.io/dusza/phlexerr:latest

Leave out the APP_PASSWORD line to use the default password, YYZ. The container runs as user 99:100. If the data folder isn't writable, run chown 99:100 /path/to/phlexerr-data.

Build it yourself instead

docker build -t phlexerr:latest .

Then use phlexerr:latest as the image name in the commands above (on Unraid, edit the template's Repository field).

First-run setup

  1. Open the web page and sign in. If you didn't set one, the password is YYZ.
  2. Click Settings and enter the Plex URL and token. Everything else is optional (Tautulli, Radarr, Sonarr, Seerr). Each one has a Test connection button. Leaving Soon is also optional and off until you enable it.
  3. Click Save & refresh data. The first refresh reads your whole library and can take a few minutes.
  4. Browse Prune. Nothing is deleted while the DRY RUN badge is showing.

Use your server's LAN IP in the URLs (for example http://192.168.1.10:32400), not localhost.

Setting Where to find it
Plex token Plex web, any item, the ⋯ menu, Get Info, View XML, then X-Plex-Token in the address bar
Tautulli key Tautulli, Settings, Web Interface, API key
Radarr / Sonarr key Settings, General, API key
Seerr key Settings, General, API key

Where your keys are stored

Keys entered on the Settings page are saved in settings.json in your data folder (/config in the container), readable only by the container's user. They are never sent back to your browser once saved. Keys given as container environment variables stay in the container definition. Anything saved on the Settings page overrides the environment. Never share your data folder or your Unraid template file.

Safety

  • Change the default password. Phlexerr starts with the password YYZ so the first install is quick, and it shows a warning banner until you set your own. Never expose it to the internet with the default.
  • Dry-run is on by default. It can only be switched off with DRY_RUN=false on the container, never from the web page, so a stolen login can't turn on deleting.
  • Nothing is ever deleted automatically. There are no schedules. Even the optional Leaving Soon row only labels titles; when a date passes, the title stays until you delete it.
  • Real deletes need you to type DELETE in a dialog that lists every item and the space it will free.
  • Protected and Keep items can't be selected, and the server refuses them even from an old page.
  • Every attempt, real or dry, is written to the deletion log and shown on the History tab.
  • Batches are limited (200 by default).
  • If removing a title from Radarr/Sonarr fails, Seerr is left alone for that title.

Updating

  • Ready-made image: pull the new image and recreate the container. On Unraid, use the Docker tab's Check for updates and Apply update. Your data folder is kept.
  • Built from source: pull the new code, run docker build again (or docker compose up -d --build), and recreate the container.

Hard-refresh the browser afterwards (Ctrl+F5).

Remote access

Phlexerr has a password login, login throttling and CSRF protection, but it can delete files, so don't expose it to the internet on its own. If you want access from outside:

  1. Set COOKIE_SECURE=true and TRUST_PROXY=true.
  2. Use a tunnel or reverse proxy with HTTPS.
  3. Put an access-control layer in front (for example Cloudflare Access limited to your email, or a VPN such as Tailscale).

Configuration reference

Everything below can be set as an environment variable. Service URLs and keys can instead be entered on the Settings page.

Variable Default Meaning
APP_PASSWORD YYZ Password for the web page. Change it. The app shows a warning banner while the default is in use
DRY_RUN true Nothing is deleted while true
PLEX_URL, PLEX_TOKEN Plex (required, but can be set in Settings)
TAUTULLI_URL, TAUTULLI_API_KEY Optional
RADARR_URL, RADARR_API_KEY Optional
SONARR_URL, SONARR_API_KEY Optional
SEERR_URL, SEERR_API_KEY Optional
MDBLIST_API_KEY Only for private MDBList lists
PLEX_LIBRARIES all Limit to some libraries, comma separated
WATCHED_PERCENT 85 An episode counts as watched at this %
MAX_DELETE_BATCH 200 Most items per delete
REFRESH_HOURS 0 Auto-refresh interval (0 = manual)
VERIFY_TLS true Set false for self-signed certificates
COOKIE_SECURE, TRUST_PROXY false For use behind HTTPS and a proxy
TZ Your time zone, for the "Released on this day" row

Troubleshooting

  • Can't sign in / "bad request": hard-refresh the browser (Ctrl+F5) after an update.
  • "Heads up" box on Prune: that's the list of optional services you haven't connected. It's information, not an error.
  • Settings won't save: the data folder isn't writable. Run chown 99:100 on it and restart.
  • Plays show ?: Tautulli isn't connected, so play data comes from Plex for your own account only.
  • IMDb list rows stop updating: IMDb blocks automated downloads. Use an MDBList link or upload the list's CSV instead.
  • Posters on the Missing list are blank: the title hasn't been matched in Seerr yet, or the server can't reach image.tmdb.org.

More documentation

  • Feature guide: every tab and option in detail
  • The app also has a searchable Help tab.

Development

pip install -r requirements.txt playwright
python3 tests/e2e.py          # full test against mock services
python3 tests/plex_only.py    # the app with only Plex connected

The tests start mock versions of all five services, so they never touch your real server.

Screenshots and trademarks

The screenshots in this README are for demonstration purposes only. They show Phlexerr running against the author's own personal server to illustrate how the app works. The titles, posters, artwork and other media shown belong to their respective copyright holders. Their appearance here does not mean the author owns, hosts, shares or distributes any of it, and Phlexerr itself contains and provides no media.

Phlexerr is an independent project. It is not affiliated with, endorsed by or sponsored by Plex, Tautulli, Radarr, Sonarr, Seerr, MDBList, TMDB, IMDb or any studio or rights holder. All product names, logos and brands are the property of their respective owners and are used only to identify the services Phlexerr works with.

If you are a rights holder and would like an image removed, please open an issue or use the private reporting link on the Security tab and it will be taken down promptly.

License

MIT.

Categories

Related apps

Links

Details

Repository
ghcr.io/dusza/phlexerr:latest
Last Updated2026-12-06
First Seen2026-12-05

Runtime arguments

Web UI
http://[IP]:[PORT:8080]/
Network
bridge
Shell
sh
Privileged
false
Extra Params
--restart=unless-stopped

Template configuration

Web UI PortPorttcp

Port for the web interface

Target
8080
Default
2112
Value
2112
Config / dataPathrw

Stores the report cache, keep-list and deletion log

Target
/config
Default
/mnt/user/appdata/phlexerr/data
Value
/mnt/user/appdata/phlexerr/data
App passwordVariable

Password for signing in. Default is YYZ so you can get started quickly: CHANGE IT before exposing this to anyone else.

Target
APP_PASSWORD
Default
YYZ
Value
YYZ
DRY_RUNVariable

true = nothing is ever deleted, you only get a report of what would happen. Set to false to enable real deletion.

Default
true
Value
true
Plex URLVariable

e.g. http://SERVER-IP:32400 (optional here: you can also enter it in the web UI Settings page)

Target
PLEX_URL
Default
http://192.168.1.10:32400
Plex tokenVariable

Optional here (or use the web UI Settings page). X-Plex-Token. Plex web app > any item > ... > Get Info > View XML > copy X-Plex-Token from the URL

Target
PLEX_TOKEN
Tautulli URLVariable

e.g. http://SERVER-IP:8181

Target
TAUTULLI_URL
Default
http://192.168.1.10:8181
Tautulli API keyVariable

Tautulli > Settings > Web Interface > API key

Target
TAUTULLI_API_KEY
Radarr URLVariable

e.g. http://SERVER-IP:7878

Target
RADARR_URL
Default
http://192.168.1.10:7878
Radarr API keyVariable

Radarr > Settings > General > API key

Target
RADARR_API_KEY
Sonarr URLVariable

e.g. http://SERVER-IP:8989

Target
SONARR_URL
Default
http://192.168.1.10:8989
Sonarr API keyVariable

Sonarr > Settings > General > API key

Target
SONARR_API_KEY
Seerr URLVariable

Overseerr / Jellyseerr / Seerr, e.g. http://SERVER-IP:5055

Target
SEERR_URL
Default
http://192.168.1.10:5055
MDBList API key (optional)Variable

Only needed for MDBList lists that are not public (mdblist.com/preferences)

Target
MDBLIST_API_KEY
Seerr API keyVariable

Seerr > Settings > General > API key

Target
SEERR_API_KEY
Plex link base (optional)Variable

Where title/poster links open. Blank = https://app.plex.tv/desktop. Can also be set in Settings.

Target
PLEX_LINK_BASE
Plex libraries (optional)Variable

Comma-separated library names to include. Blank = all movie and TV libraries.

Target
PLEX_LIBRARIES
Secure cookie (HTTPS)Variable

Set true when reached over HTTPS, e.g. through a Cloudflare tunnel

Target
COOKIE_SECURE
Default
false
Value
false
Trust proxy headersVariable

Set true behind Cloudflare/reverse proxy so the real client IP is used for login throttling

Target
TRUST_PROXY
Default
false
Value
false