5.8.5 DeleteReferences

5.8.5.1 Description

This Service is used to delete one or more References of a Node.

When any of the References deleted by an invocation of this Service are contained in a View, then the ViewVersion Property is updated if this Property is supported.

Table 31 defines the parameters for the Service.

Table 31 – DeleteReferences Service Parameters
NameTypeDescription
Request

requestHeader

RequestHeaderCommon request parameters (see 7.32 for RequestHeader definition).

referencesToDelete []

DeleteReferences ItemList of References to delete. This structure is defined in-line with the following indented items.

sourceNodeId

NodeId NodeId of the Node that contains the Reference to delete.

referenceTypeId

NodeId NodeId of the ReferenceType that defines the Reference to delete.

isForward

BooleanIf the value is TRUE, the Server deletes a forward Reference. If the value is FALSE, the Server deletes an inverse Reference.

targetNodeId

ExpandedNodeId

NodeId of the TargetNode of the Reference.

If the Server index indicates that the TargetNode is a remote Node, then the nodeId shall contain the absolute namespace URI. If the TargetNode is a local Node the nodeId shall contain the namespace index.

deleteBidirectional

Boolean

A Boolean parameter with the following values:

TRUE delete the specified Reference and the opposite Reference from the TargetNode. If the TargetNode is located in a remote Server, the Server is permitted to delete the specified Reference only.

FALSE delete only the specified Reference.

Response

responseHeader

ResponseHeaderCommon response parameters (see 7.33 for ResponseHeader definition).

results []

StatusCodeList of StatusCodes for the References to delete (see 7.38 for StatusCode definition). The size and order of the list matches the size and order of the referencesToDelete request parameter.

diagnosticInfos []

DiagnosticInfoList of diagnostic information for the References to delete (see 7.12 for DiagnosticInfo definition). The size and order of the list matches the size and order of the referencesToDelete request parameter. This list is empty if diagnostics information was not requested in the request header or if no diagnostic information was encountered in processing of the request.
5.8.5.2 Service results

Table 32 defines the Service results specific to this Service. Common StatusCodes are defined in Table 178.

Table 32 – DeleteReferences Service Result Codes
Symbolic IdDescription
Bad_NothingToDoSee Table 178 for the description of this result code.
Bad_TooManyOperationsSee Table 178 for the description of this result code.
5.8.5.3 StatusCodes

Table 33 defines values for the results parameter that are specific to this Service. Common StatusCodes are defined in Table 179.

Table 33 – DeleteReferences Operation Level Result Codes
Symbolic IdDescription
Bad_SourceNodeIdInvalidSee Table 179 for the description of this result code.
Bad_ReferenceTypeIdInvalidSee Table 179 for the description of this result code.
Bad_ServerIndexInvalidThe Server index is not valid.
Bad_TargetNodeIdInvalidSee Table 179 for the description of this result code.
Bad_UserAccessDeniedSee Table 178 for the description of this result code.
Bad_NoDeleteRightsSee Table 179 for the description of this result code.