You can use ChartChange() to remove all the event markers from a chart:
Framework.ChartChange({
mode: "active", // or "all", or "single" plus a .chartId value
command: "remove-all-event-markers"
});