WTH can't I delete statistics for an entity/domain, or let HA do it automatically

It would be great if I could delete statistics for an entity that are older than “…” or configure that HA should delete statistics that are older than a defined period automatically. I should be able to configure this on entity and domain/class level.

This would help to keep the size of the database small.

Thanks for your amazing work

Do you mean something like this?

Yes, something like that.

I guess the “purge” service is NOT for statistics.
Purging records for an entity removes “history” data, not statistics.