Learn how to write a Jenkins script that interacts with builds by removing builds older than X days.
X can be anything. For example, remove builds that are older than 3 days. Just make sure that you don’t simply remove all the builds (since that’s different from the objective).