Constants indicating the behavior when a referenced record is deleted.
SDKs
- iOS 8.0+
- macOS 10.10+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 3.0+
Framework
- Cloud
Kit
Declaration
enum CKRecord_Reference_Action : UInt
Constants indicating the behavior when a referenced record is deleted.
SDKs
Framework
enum CKRecord_Reference_Action : UInt
case none
No action when a referenced record is deleted. Deleting a parent record does not delete the children that refer to that parent. The CKReference
object still contains the ID of the deleted record and is not updated automatically.
case delete Self
The delete action for referenced records. Deleting a record also deletes any records containing CKReference
objects that point to that record. The deletion of the additional records may trigger a cascade deletion of more records. The deletions are asynchronous in the default zone and immediate in a custom zone.