Recorder: Purge time by sensors

Hello.

I want keep indefinitely or longer term the history of some sensors than others, known i keep indefinitely all sensors due i haven’t option.

i not want lost (example) power consumption history, solar prod and similar, and about others i haven’t interest in keeping his story for more than a few days,… and my databases is growing too fast.

Would be very useful a option for specify something like this:

recorder:
  purge_keep_days: 32
    - sensor.lights*
  purge_keep_days: 0 ( indefinitely)
    - sensor.power*

Closing as a duplicate. Please search for existing requests before posting.