removeEvent(event, options)

Removes an event from a device’s calendar.

Using removeEvent() is an inherently dangerous action, as it allows event data to be irreversibly deleted. Use caution when using this functionality in your component. At an absolute minimum, consider adding a confirmation window for your users that clearly states the outcome of the action, with an option for them to cancel if they wish.

  • event—(Required) The Event object to be removed from the device’s calendar.
  • options—(Required) A CalendarServiceOptions object to configure the CalendarService request.

If successful, nothing is returned. If unsuccessful, an error message is returned.

Use this function to remove an event from a device’s calendar.