Automate deleting old calendar entries?

I am experimenting with some block time scheduling.

I would like to clean up my calendar by deleting past appointments automatically with a script or automation.

Primarily, I review my historical calendar quarterly for planning purposes and would like to remove the clutter of appointments that are tactical or transient.

To make it easier, I don’t mind tagging these appointments when I create them with a keyword or unique tag that would make selecting them easier, but haven’t done any calendar automation yet.

Is this straightforward to build?

Should be relatively straightforward to do in Shortcuts. Specify the calendar, date range and whatever identifier for the events, and the remove events action should then be able to tidy up. Just the criteria you want to be extra careful with so as not to remove wanted events.