code: def keep_season(show, keep):
      
      deleted = 0
      print('%s Cleaning %s to latest season.' % (datestr(), show.title))
      for season in show.seasons()[:-1]:
          for episode in season.episodes():
              delete_episode(episode)
              deleted += 1
      return deleted
docs: Keep only the latest season.