What is the best-practice for deleting/leaving a share?
I'm trying to figure out how to stop sharing a record you've previously shared, as well as how to leave a share you've previously joined that someone else has shared. Hopefully I've just missed the documentation around this point, but I see little on the topic.
Can someone confirm or correct this approach? Thanks.
Say Alice has a record named record-A.
Alice shares record-A Alice's privateCloudDatabase now contains a cloudkit.share record.
Alice's record-A.share is set to a reference to that cloudkit.share.
Bob joins the share Bob's sharedCloudDatabase now contains a cloudkit.share record referencing Alice's cloudkit.share?
Bob wants to leave the share QUESTION: Is it enough to simply delete Bob's cloudkit.share in his sharedCloudDatabase?
Alice wants to stop sharing QUESTION: Is it enough to simply delete Alice's cloudkit.share in her privateCloudDatabase?
QUESTION: When Alice stops sharing, is Bob's cloudkit.share automatically deleted from his sharedCloudDatabase?
3
0
2.1k