This is a copy paste of the issue I created on github originally, so I’m copying it here as I cannot seem to find a definitive answer on where Feature requests go. Close whichever you see fit
Describe the problem
My overarching problem is that I’d like to keep only n amount of episodes on the disk (both sonarr and download client). TO be more precise, I only want the last episodes of shows like The Daily show. From what I’ve seen, this was a requested feature for quite some time (#314 and all its duplicates) however no progress has been made on this for at least 7 years from what I can tell.
Currently I have to manually delete the files first in the sonarr directory (either through plex, manually or from sonarr itself) and then manually in the torrent client, which can be quite time consuming.
Describe any solutions you think might work
What I have been told only now is that Plex can handle this deletion behaviour on its own through the advanced settings. When the episode is deleted by Plex, Sonarr will pick this up and–if it is set to do so–unmonitor these episodes.
These events are visible in the history.
What I propose is to add an “on delete” to the “Connection settings”.
This way, anyone could make their own script to tell their download client to delete the episodes as well, seeing as the hash is passed to the scripts/webhooks.
Another option would be to build this option straight into sonarr by adding an advanced option to “Delete torrent data from client when episode is removed and unmonitored.” Either this could be for all shows, or a toggle for specific shows.
Honestly, even the option to “Remove data from torrent client” either by adding another column with checkboxes to this menu or just one single checkbox for all the ones that are being processed would already help speed my use case up. And I am fairly sure this would apply to a lot of people who are keeping up to date with any daily shows.
Please help us automatically delete episodes in one way or another