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
attributeIdof 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
succeedsproperty of the successor will be set to undefined. - If the
attributeIdrelates to a RelationshipAttribute and there are shared copies of the peer shared RelationshipAttribute or potential predecessors of it, theshareInfo.sourceAttributeof 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
deletionInfowithdeletionStatus"DeletedByPeer"and the time of receiving the Notification asdeletionDate. - The
notificationIdis 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
attributeIdis not a peer shared Attribute.