Removes an event or recurring events from the event store by either batching or committing the changes.
- iOS 5.0+
- macOS 10.8+
- Mac Catalyst 13.0+Beta
The event to remove.
The span to use. Indicates whether the remove affects future instances of the event in the case of a recurring event.
trueto remove the event immediately; otherwise, the change is batched until the
commit()method is invoked.
The error that occurred, if any did. Otherwise,
If the event has successfully removed,
false. Also returns
event cannot be removed because it is not in the event store.
This method raises an exception if it is passed an event from another event store.