The two "delete empty collections" actions
They sound like one thing and clean up two different messes.
| Action | What it removes |
|---|---|
| Delete empty (N) | Collections Kustos built that now hold nothing — removed from Kustos and Plex. Seasonal collections are never included, because being empty out of season is their normal state. |
| Remove from Plex (N) | Plex keeps a collection after its last title is deleted. These hold 0 items and have no Kustos collection behind them — removed from Plex only. |
So the first is Kustos tidying up after itself, and the second is tidying up after Plex. Running one does not do the other.
Half of the first one happens on its own. With Delete below minimum on (the default for new collections, set under Settings → Applications → Plex → Collection defaults), an empty collection's Plex object is taken down automatically, but the collection stays in Kustos so it comes back once it has titles again. Only Delete empty removes it from Kustos.
A sudden empty result is held for a day. If every source matches nothing although the collection held 5 or more titles at its last build, and most of them are still in the library, Kustos does not believe it straight away. That build only adds: nothing is removed, no tags are stripped, and the Plex collection is not taken down. If the result is still empty a day later, it is accepted. Titles that have really left the library, as after a cleanup, are believed at once.
A collection on the Automatic instance builds against the Plex library that the instance it resolves to is mapped to (its Plex library mapping), not whichever Plex library happens to sort first.