Delete a peer shared Attribute and notify peer
This use case allows you to delete a peer shared Attribute, i.e. a LocalAttribute that a peer owns and has shared with you.
Parameters
- The
attributeId
of the peer shared Attribute you want to delete.
On Success
- The peer shared Attribute will be deleted.
- All predecessors of the peer shared Attribute will be deleted.
- If the peer shared Attribute was succeeded, the
succeeds
property of the successor will be set to undefined. - If the
attributeId
relates to a RelationshipAttribute and there are shared copies of the peer shared RelationshipAttribute or potential predecessors of it, theshareInfo.sourceAttribute
of those emitted ThirdPartyRelationshipAttributes will be set to undefined. - A Notification with a PeerSharedAttributeDeletedByPeerNotificationItem is sent to the owner of the Attribute, informing them that you deleted their Attribute. Technically, the own shared Attribute of the owner and all predecessors will get a
deletionInfo
withdeletionStatus
"DeletedByPeer"
and the time of receiving the Notification asdeletionDate
. - The
notificationId
is returned.
On Failure
- No Attribute can be deleted if you don’t have a LocalAttribute with given
attributeId
. - No Attribute can be deleted if the Attribute with given
attributeId
is not a peer shared Attribute.