---
title: recordWithIDWasDeletedBlock
framework: cloudkit
role: symbol
role_heading: Instance Property
path: cloudkit/ckfetchrecordchangesoperation/recordwithidwasdeletedblock
---

# recordWithIDWasDeletedBlock

The block to execute with the ID of a deleted record.

## Declaration

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

## Discussion

Discussion The block returns no value and takes the following parameters: The operation object executes this block once for each record the server deletes in the record zone after the previous fetch request. Each time the block executes, it executes serially with respect to the other progress blocks of the operation. If there aren’t any deleted records, this block doesn’t execute. If you intend to use this block to process results, set it before executing the operation or submitting it to a queue.

## See Also

### Processing the Fetch Record Changes Results

- [recordChangedBlock](cloudkit/ckfetchrecordchangesoperation/recordchangedblock.md)
- [fetchRecordChangesCompletionBlock](cloudkit/ckfetchrecordchangesoperation/fetchrecordchangescompletionblock.md)
