Instance Method


Initializes and returns an operation object configured to save and delete the specified record zones.


- (instancetype)initWithRecordZonesToSave:(NSArray<CKRecordZone *> *)recordZonesToSave recordZoneIDsToDelete:(NSArray<CKRecordZoneID *> *)recordZoneIDsToDelete;



An array of CKRecordZone objects representing the record zones to save. You may specify nil for this parameter.


An array of CKRecordZoneID objects representing the record zones you want to delete, if any. You may specify nil for this parameter.

Return Value

An initialized operation object.


The record zones you intend to save or delete must all reside in the same database, which you specify when configuring the operation object. Deleting a record zone also deletes any records it contains. Trying to delete a record zone that does not exist in the current database returns an error.

See Also

Initializing the Operation Object

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software