Retrieve attributes from all upcoming calendar events within range

Basically it comes down to this feature request:

But since this isn’t implemented, is there a workaround (automation, pyscript, HTTP request, …) to this issue?
Bottom line: I need to delete calendar events created by o365_calendar integration.
This requires the event ID, stored as an attribute.

Thanks.