<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.10.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -",
    "watchOS: 3.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CloudKit",
  "identifier" : "/documentation/CloudKit/CKModifyRecordZonesOperation/initWithRecordZonesToSave:recordZoneIDsToDelete:",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "CloudKit"
    ],
    "preciseIdentifier" : "c:objc(cs)CKModifyRecordZonesOperation(im)initWithRecordZonesToSave:recordZoneIDsToDelete:"
  },
  "title" : "initWithRecordZonesToSave:recordZoneIDsToDelete:"
}
-->

# initWithRecordZonesToSave:recordZoneIDsToDelete:

Creates an operation for modifying the specified record zones.

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

## Parameters

`recordZonesToSave`

The record zones to save. You can specify `nil` for this parameter.

`recordZoneIDsToDelete`

The IDs of the record zones to delete. You can specify `nil` for this parameter.

## Discussion

The record zones you intend to save or delete must all reside in the same database, which you specify when you configure the operation. If you delete a record zone, CloudKit deletes any records it contains.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)