---
title: recordZoneWithIDWasDeletedDueToUserEncryptedDataResetBlock
framework: cloudkit
role: symbol
role_heading: Instance Property
path: cloudkit/ckfetchdatabasechangesoperation/recordzonewithidwasdeletedduetouserencrypteddataresetblock
---

# recordZoneWithIDWasDeletedDueToUserEncryptedDataResetBlock

The closure to execute when a user-invoked account reset deletes a record zone.

## Declaration

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

## Discussion

Discussion The closure returns no value and takes a single parameter: the deleted record zone’s ID. The operation executes this closure, instead of recordZoneWithIDWasDeletedBlock, after a user action causes CloudKit to delete the record zone. Reupload any locally cached data to iCloud to minimize data loss.

## See Also

### Processing the Operation’s Results

- [recordZoneWithIDChangedBlock](cloudkit/ckfetchdatabasechangesoperation/recordzonewithidchangedblock.md)
- [recordZoneWithIDWasDeletedBlock](cloudkit/ckfetchdatabasechangesoperation/recordzonewithidwasdeletedblock.md)
- [recordZoneWithIDWasPurgedBlock](cloudkit/ckfetchdatabasechangesoperation/recordzonewithidwaspurgedblock.md)
- [changeTokenUpdatedBlock](cloudkit/ckfetchdatabasechangesoperation/changetokenupdatedblock.md)
- [fetchDatabaseChangesCompletionBlock](cloudkit/ckfetchdatabasechangesoperation/fetchdatabasechangescompletionblock.md)
