Delete last season when new season is downloaded/complete

Self explanatory in the subject.

An option to tell sonarr that when a new season has completely downloaded, or as it starts to download, it deletes the previous season per episode, or per season as the next season downloads.

Then, will unfollow last season, automatically.

Thanks!

Can you code? If so this is pretty simple with a post processing script and the Sonarr APIā€¦ Just a thought to get ya going for now since the above request is rolling on 7 years old