Delete (not hide) calendar events automatically or via CLI
Since iCloud is based on CalDAV, this shouldn’t be too hard. Deleting an event boils down to a simple HTTP request, e.g.:

DELETE /calendars/johndoe/home/132456762153245.ics HTTP/1.1
If-Match: "2134-314"


This project on GitHub could serve as a good starting point: jcs/iclouddav