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's sharedCloudDatabase now contains a cloudkit.share record referencing Alice's cloudkit.share?
QUESTION: Is it enough to simply delete Bob's cloudkit.share in his sharedCloudDatabase?
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?