Instance Method

removeCalendar:commit:error:

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

Declaration

- (BOOL)removeCalendar:(EKCalendar *)calendar commit:(BOOL)commit error:(NSError * _Nullable *)error;

Parameters

calendar

The calendar to be removed.

commit

YES to remove the calendar immediately; otherwise, the change is batched until the commit: method is invoked.

error

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

Return Value

YES if successful; otherwise, NO.

Discussion

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

See Also