welcome to AP forum! This request is a long standing one that has gotten a lot of discussions and there is an existing GitHub issue as well Option to have only the latest episode
GitHub issue keep the newest N episodes of each subscribed Podcast · Issue #2077 · AntennaPod/AntennaPod · GitHub