Training
×

Delete a reference object

The object referenced from a reference object cannot be deleted from the referencing node. Instead, the referencing node should delete its reference object.
When the remote object was created by the current process and it does not have a reference count, deleting the reference object also deletes the remote object.
When the remote object has a reference count, that count is decremented; if it is now zero, the remote object is deleted.
If a referenced object is deleted on its owning node, using the reference object will result in errors; this is consistent with the behavior on a single node.