Instance Method

remove(_:commit:)

Removes a reminder from the event store by either committing or batching the changes.

Declaration

func remove(_ reminder: EKReminder, commit: Bool) throws

Parameters

reminder

The reminder to be removed.

commit

A Boolean value indicating whether to remove the reminder immediately or to batch the removals; passing false will not commit the removal from the event store until the commit() method is invoked.

error

The error that occurred, if any; otherwise, nil.

Return Value

If successful, true; otherwise, false.

Discussion

This method raises an exception if reminder belongs to another event store.

See Also