Instance Method

remove(_:span:)

Removes an event from the event store.

Declaration

func remove(_ event: EKEvent, span: EKSpan) throws

Parameters

event

The event to be removed.

span

The span to use. Indicates whether to remove future instances of the event in the case of a recurring event.

error

The error if one occurred; otherwise, nil.

Return Value

If the event has successfully removed, true; otherwise, false. Also returns false if event cannot be removed because it is not in the event store.

Discussion

This method raises an exception if it is passed an event from another event store.

See Also