Phlexerr
Docker app from Dusza's Repository
Clean up your Plex library on your own terms.
Requirements
Overview
Readme
View on GitHub
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: 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.
- 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.
![]() Request what is missing. See which titles from a list aren't in Plex, check each against Seerr, and request them in one go. |
![]() 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 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 Everything you've deleted, the space freed, and a one-click Re-request if you change your mind. |
![]() Activity Live "now playing" cards, a full watch history, and a Stop button (with an optional message to the viewer). Needs Tautulli. |
![]() Protect Lock favorites by actor, director, studio, collection or keyword so they can never be selected. |
![]() 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. |
![]() 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)
- Open the Unraid terminal (the
>_icon, top right) and download the template onto your server:
(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.)wget -O /boot/config/plugins/dockerMan/templates-user/Phlexerr.xml https://raw.githubusercontent.com/Dusza/Phlexerr/main/Phlexerr.xml - Docker tab, Add Container, pick Phlexerr from the template dropdown.
- 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. - 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
- Open the web page and sign in. If you didn't set one, the password is
YYZ. - 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.
- Click Save & refresh data. The first refresh reads your whole library and can take a few minutes.
- 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
YYZso 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=falseon 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
DELETEin 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
datafolder is kept. - Built from source: pull the new code, run
docker buildagain (ordocker 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:
- Set
COOKIE_SECURE=trueandTRUST_PROXY=true. - Use a tunnel or reverse proxy with HTTPS.
- 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:100on 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
Explore more like this
Explore allLinks
Details
ghcr.io/dusza/phlexerr:latestRuntime arguments
- Web UI
http://[IP]:[PORT:8080]/- Network
bridge- Shell
sh- Privileged
- false
- Extra Params
--restart=unless-stopped
Template configuration
Port for the web interface
- Target
- 8080
- Default
- 2112
- Value
- 2112
Stores the report cache, keep-list and deletion log
- Target
- /config
- Default
- /mnt/user/appdata/phlexerr/data
- Value
- /mnt/user/appdata/phlexerr/data
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
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
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
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
e.g. http://SERVER-IP:8181
- Target
- TAUTULLI_URL
- Default
- http://192.168.1.10:8181
Tautulli > Settings > Web Interface > API key
- Target
- TAUTULLI_API_KEY
e.g. http://SERVER-IP:7878
- Target
- RADARR_URL
- Default
- http://192.168.1.10:7878
Radarr > Settings > General > API key
- Target
- RADARR_API_KEY
e.g. http://SERVER-IP:8989
- Target
- SONARR_URL
- Default
- http://192.168.1.10:8989
Sonarr > Settings > General > API key
- Target
- SONARR_API_KEY
Overseerr / Jellyseerr / Seerr, e.g. http://SERVER-IP:5055
- Target
- SEERR_URL
- Default
- http://192.168.1.10:5055
Only needed for MDBList lists that are not public (mdblist.com/preferences)
- Target
- MDBLIST_API_KEY
Seerr > Settings > General > API key
- Target
- SEERR_API_KEY
Where title/poster links open. Blank = https://app.plex.tv/desktop. Can also be set in Settings.
- Target
- PLEX_LINK_BASE
Comma-separated library names to include. Blank = all movie and TV libraries.
- Target
- PLEX_LIBRARIES
Set true when reached over HTTPS, e.g. through a Cloudflare tunnel
- Target
- COOKIE_SECURE
- Default
- false
- Value
- false
Set true behind Cloudflare/reverse proxy so the real client IP is used for login throttling
- Target
- TRUST_PROXY
- Default
- false
- Value
- false







