barman + backup and restore + how to enable auto deletion from backup files
You should configure retention_policy.

Here's the syntax :

retention_policy = {REDUNDANCY value | RECOVERY WINDOW OF value {DAYS | WEEKS | MONTHS}}


You will find documentation here