<!--
{
  "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/CKModifyRecordsOperation/recordIDsToDelete",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "CloudKit"
    ],
    "preciseIdentifier" : "c:objc(cs)CKModifyRecordsOperation(py)recordIDsToDelete"
  },
  "title" : "recordIDsToDelete"
}
-->

# recordIDsToDelete

The IDs of the records to delete permanently from the database.

```
var recordIDsToDelete: [CKRecord.ID]? { get set }
```

## Discussion

An array of [`CKRecord.ID`](/documentation/CloudKit/CKRecord/ID) objects that identifies the records to delete. The initial value of the property is the array of record IDs that you provide to the [`init(recordsToSave:recordIDsToDelete:)`](/documentation/CloudKit/CKModifyRecordsOperation/init(recordsToSave:recordIDsToDelete:)) method.

When deleting records, the operation reports progress only on the records with the IDs that you specify in this property. Deleting records can trigger the deletion of related records if there is an owner-owned relationship between the records involving a [`CKRecord.Reference`](/documentation/CloudKit/CKRecord/Reference) object. When additional deletions occur, CloudKit doesn’t pass them to the progress handler of the operation. For that reason, it’s important to understand the implications of the ownership model you use when you relate records to each other through a [`CKRecord.Reference`](/documentation/CloudKit/CKRecord/Reference) object. For more information about owner-owned relationships, see [`CKRecord.Reference`](/documentation/CloudKit/CKRecord/Reference).

If you intend to change the value of this property, do so before you execute the operation or submit the operation to a queue.

---

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)