There are two new endpoints in 2.2.7:
/hub/advanced/maxDeviceStateAgeDays/30
/hub/advanced/maxEventAgeDays/30
...where 30 is an example. Valid values are 7-365, and default is 365. So those events from 2019 should be gone once the hub is running 2.2.7. Corresponding "read" endpoints are
/hub/advanced/maxDeviceStateAgeDays and
/hub/advanced/maxEventAgeDays