Recorder - Purge any entity by filter sensor.*_last_seen sensor.*_linkquality

Regarding the Recorder documentation, I must specify the entity in case I want to purge it by calling service recorder.purge_entities.

I want to purge all data older than 1 day from any entities like:
sensor.*_last_seen
sensor.*_linkquality

So, looks like no way to create automation for auto purge.

I know that I can set in yamal without entity, but in this case I cannot keep data for a short time.
I want only to purge data older than 1 day.

Any ideas for a way to create automation?

Thanks