---
title: recordWithIDWasDeletedBlock
framework: cloudkit
role: symbol
role_heading: Instance Property
path: cloudkit/ckfetchrecordzonechangesoperation/recordwithidwasdeletedblock-3z14c
---

# recordWithIDWasDeletedBlock

The closure to execute when a record no longer exists.

## Declaration

```swift
var recordWithIDWasDeletedBlock: ((CKRecord.ID, CKRecord.RecordType) -> Void)? { get set }
```

## Discussion

Discussion The closure returns no value and takes the following parameters: The deleted record’s ID. The deleted record’s type. The operation executes this closure once for each record the server deletes after the previous change token. Each time the closure executes, it executes serially with respect to the other closures of the operation. If there aren’t any record deletions, this closure doesn’t execute. Set this property before you execute the operation or submit it to a queue.

## See Also

### Processing the Zone Change Operation Results

- [recordChangedBlock](cloudkit/ckfetchrecordzonechangesoperation/recordchangedblock.md)
- [recordZoneChangeTokensUpdatedBlock](cloudkit/ckfetchrecordzonechangesoperation/recordzonechangetokensupdatedblock.md)
- [recordZoneFetchCompletionBlock](cloudkit/ckfetchrecordzonechangesoperation/recordzonefetchcompletionblock.md)
- [fetchRecordZoneChangesCompletionBlock](cloudkit/ckfetchrecordzonechangesoperation/fetchrecordzonechangescompletionblock.md)
