I have two CKRecords, say RecA and RecB, where RecA has a CKReference to RecB. When I delete both records in one call using CKModifyRecordsOperation, everything works as expected.
But now I've added the ability to share these records, and have set RecA as the parent of RecB. Now when I try to delete them, I get a CKError stating: "Reference Viloation", "Record delete would violate validating reference". I know that I could probably delete RecB first, but I don't want to have to make two separate calls.
My CKReference specifies an action of CKRecord.Reference.Action.none. When I tried using deleteSelf, I got "Cycle detected in record graph error when creating the records.