The remove() method removes an event from the Scheduler event collection and returns an action object that can be queued or sent to the server.
DayPilot.Scheduler.events.remove(e, data)e (DayPilot.Event) - instance to be removed
data (object) - custom data to be sent to the server with the Notify event
The e object has to be acquired using DayPilot.Scheduler.events.find().
Returns a DayPilot.Action object that stores the action details.
Remove an event with id "123":
const e = dp.events.find("123");
dp.events.remove(e);DayPilot.Scheduler.events.find()
Client-Side Event API [doc.daypilot.org]