def keep_season(show, keep):
deleted = <NUM_LIT:0><EOL>print('<STR_LIT>' % (datestr(), show.title))<EOL>for season in show.seasons()[:-<NUM_LIT:1>]:<EOL><INDENT>for episode in season.episodes():<EOL><INDENT>delete_episode(episode)<EOL>deleted += <NUM_LIT:1><EOL><DEDENT><DEDENT>return deleted<EOL>
Keep only the latest season.