Kustos
Manage billing
Wiki / Cleanup & arr rules

Upkeep

kustos · your server
Settings -> Upkeep: the cleanup safety limits
Settings -> Upkeep: the cleanup safety limits.

Since 1.0.8 the page has two sections. Cleanup holds the safety limits below and the Unmanaged Plex collections card. Artwork repair holds the three cards that undo, reset and clear art Kustos applied; they moved here from Media management.

Cleanup safety limits

Three limits stand between a mis-scoped rule and your library, and they come in two groups that do different jobs. This is what catches a rule that quietly starts matching your whole library, usually because a list or collection it depends on came back empty.

Per rule — a ceiling on how many titles one rule may delete in a single cleanup pass. Go over and everything the rule matched is still queued with its countdown, you get a message, and the rule then deletes at most this many per pass. The rest wait for the next pass.

SettingWhat it does
Most titles per runAn absolute cap on the titles one rule may delete per pass. 0 means no limit.
Most of the library per runThe same cap as a percentage of the library. 0 means no limit.

Both of these apply, and the stricter wins. The percentage never caps a run below 20 titles, so it cannot strangle a small library into never cleaning anything. Neither stops a run: what goes over is deferred to the next pass.

Across all rules — a cap on what actually gets removed, not queued.

SettingWhat it does
Most titles deleted per cleanup passHow many titles may be removed in a single cleanup run, counting every rule together. 0 means no limit.

It works the same way as the two above, but across every rule together. It does not stop the run. It deletes up to the cap and the rest stay in Leaving Soon for the next run. So a long act after countdown can hold a big queue without ever tripping it, and a mass deletion still cannot all happen at once.

Turning all three off is possible, and the Cleanup Rules page prints a red warning when you do, because that is the configuration in which a rule with a mistake in it runs to completion.

Unmanaged Plex collections, the card beside the limits, deletes Plex collections Kustos did not make: armed nightly, or now with Review & delete. It is described under Housekeeping, which kept its old address.

Artwork repair

Three cards, and they are easy to mix up. Each previews first: nothing changes until you have seen the count and pressed the button under it. A large preview asks you to type the number back before it will run.

CardWhat it doesWhat it leaves alone
Reset artworkUndoes artwork Kustos applied. Pick the Library (TV, Movies, Collections), the Artwork (Posters, Season posters, Title cards, Backgrounds, Logos) and the Source (All sources, Scraped, Dropped, Auto create). Runs as a job you can watch in Activity and stop.Art you picked yourself, unless you tick Include my manual picks. Files on disk, unless you tick Also move the files to backups.
Reset Plex imagesPuts Plex back on its own agent artwork. How much is either Art Kustos never applied (old Kometa and old Kustos leftovers Kustos has no record of) or Everything.Everything of Kustos's: no record is forgotten and no file is moved. So with Everything, art Kustos dresses comes back on its next pass. Title cards are reset only if you pick them.
Artwork for titles that are goneClears artwork Kustos still holds for Titles no longer in Sonarr or Radarr, Collections that no longer exist and Folders no title answers to. Not scheduled; it only runs when you press it.Nothing. Everything in their folders goes, including art you picked, dropped, uploaded or made in Poster Studio, because nothing answers to those titles any more. The preview counts yours separately.

Nothing is deleted outright. Where files move, they go to a dated reset backup folder beside the assets folder, in the same Movies / TV Shows / title folders, so one can be put back by hand. Both cards that move files share one setting for how long those backups are kept.

Reset artwork is not Reset all artwork to Plex defaults. That one, on Automation → Artwork, resets everything at once. These cards reset only what you pick.