How to remove a single record from a CKShare?

It is possible to append a record to a CKShare using

NSPersistentCloudKitContainer.share(objects, to: share)

but how can I reverse this operation and remove the object from share?

The workaround would be to delete and recreate the object, but is there any SDK function to do it right? The more I work with CoreData+CloudKit the more it seems like everything there is a workaround or hack or bug... This SDK is still in Alpha at best.

How to remove a single record from a CKShare?
 
 
Q