How to - set different archiving time of values for different ESP32 devices

Hello,
How is it possible to set, for multiple values, different maximum archiving date (RPi Home Assistant, e.g. temperature, humidity, etc.)? E.g. value1 = 15 days, value2 = 365 days, value3 = 30 days?
Thanks.