<!--
{
  "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/CKRecord/Reference/action-swift.property",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "CloudKit"
    ],
    "preciseIdentifier" : "c:objc(cs)CKReference(py)referenceAction"
  },
  "title" : "action"
}
-->

# action

The ownership behavior for the records.

```
var action: CKRecord.ReferenceAction { get }
```

## Discussion

The value in this property determines which action, if any, to take when deleting the target of the reference object — that is, the object that the [`recordID`](/documentation/CloudKit/CKRecord/Reference/recordID) property points to. When this property is [`CKRecord.ReferenceAction.deleteSelf`](/documentation/CloudKit/CKRecord/ReferenceAction/deleteSelf), deleting the target object deletes any records that contain that reference in one of their fields. When this property is [`CKRecord.ReferenceAction.none`](/documentation/CloudKit/CKRecord/ReferenceAction/none), deleting the target object doesn’t delete any additional objects.

---

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)