Jump to content

[Plugin] Emby Purge - Cleanup for old plugin files, devices & Live TV tuners


Recommended Posts

SoliFlix
Posted


I've been trying out a lot of plugins lately on my test server, and noticed that many of them leave data behind after being uninstalled - orphaned config files, leftover folders, that kind of thing. I also ran into a stuck, empty Live TV tile on the home screen - turned out that you should remove the entry under Live TV / TV Sources before uninstalling a Live TV plugin.

So I built this plugin (with the help of Claude) for myself to clean that up. Figured it might be useful to someone else too, so I'm sharing it here.

What it does:

- Plugin Files - scans for and removes leftover config files/folders from already-uninstalled plugins (searches ../programdata/plugins, plugins/configurations and data)
- Devices - lists every device/session, with "Select all", a live search, an inactivity filter and bulk delete (my own take on Emby's Devices list)
- Live TV Tuners - finds tuner entries whose plugin is gone and is able to remove them, with a restorable backup in case you remove the wrong one

Added an admin-only check on every endpoint - so normal users can't see the plugin or delete anything with it.

Everything runs on demand only - no background/scheduled tasks. Tested on my own QNAP and Windows servers (4.10.0.40), but only by me so far. Use at your own risk, especially since it performs deletions.

Spoiler

plugins.jpg.f4ed5f98ec9c38b1696f1f33bddc289f.jpg

Spoiler

devices.jpg.7402828a0a14dfde7103afaf5bb146c8.jpg

Spoiler

livetv.jpg.c56406b06f7cd6d2b069a56393c9a881.jpg

Installation:
1. Download the .dll
2. Copy it into your Emby Server's plugin folder
3. Restart your Emby Server

EmbyPurge.dll

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...