The events.remove() method removes the specified event from the Queue component and from the events.list data source.
DayPilot.Queue.events.remove(id)
DayPilot.Queue.events.remove(e)id (number | string) - ID of the event to remove
e (DayPilot.Event or raw object) - event to remove
You can identify the event either by its ID or by passing a DayPilot.Event instance or a raw object from DayPilot.Queue.events.list.
dp.events.remove(1);