Delete an own shared Attribute and notify peer
This use case allows you to delete an own shared Attribute, i.e. a LocalAttribute with a shareInfo, that is owned by you.
It is created as a result of sharing the content of a RepositoryAttribute with a peer.
Parameters
- The
attributeIdof the own shared Attribute you want to delete.
On Success
- The own shared Attribute will be deleted.
- All predecessors of the own shared Attribute will be deleted.
- If the own 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 own shared RelationshipAttribute or potential predecessors of it, theshareInfo.sourceAttributeof those emitted ThirdPartyRelationshipAttributes will be set to undefined. - A Notification with an OwnAttributeDeletedByOwnerNotificationItem is sent to the peer you shared the Attribute with, informing them that you deleted the Attribute. Technically, the peer shared Attribute at the peer’s side and all predecessors will get a
deletionInfowithdeletionStatus"DeletedByEmitter"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 an own shared Attribute.