The "leave copy on server" client setting will automatically delete mail for the last 30 days. To delete mail older than 30 days from the server, use the Auto mail deletion feature.