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
Name |
Type |
Description |
Request |
|
|
requestHeader |
RequestHeader |
Common request parameters (see 7.33 for RequestHeader definition). |
referencesToDelete [] |
DeleteReferences Item |
List of References to delete. This structure is defined in-line with the following indented items. |
sourceNodeId |
NodeId |
|
referenceTypeId |
NodeId |
NodeId of the ReferenceType that defines the Reference to delete. |
isForward |
Boolean |
If 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: TRUEdelete 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. FALSEdelete only the specified Reference. |
|
|
|
Response |
|
|
responseHeader |
ResponseHeader |
Common response parameters (see 7.34 for ResponseHeader definition). |
results [] |
StatusCode |
List of StatusCodes for the References to delete (see 7.39 for StatusCode definition). The size and order of the list matches the size and order of the referencesToDelete request parameter. |
diagnosticInfos [] |
DiagnosticInfo |
List 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. |
Table 32 defines the Service results specific to this Service. Common StatusCodes are defined in Table 182.
Table 32 – DeleteReferences Service Result Codes
Symbolic Id |
Description |
Bad_NothingToDo |
See Table 182 for the description of this result code. |
Bad_TooManyOperations |
See Table 182 for the description of this result code. |
Table 33 defines values for the results parameter that are specific to this Service. Common StatusCodes are defined in Table 183.
Table 33 – DeleteReferences Operation Level Result Codes
Symbolic Id |
Description |
Bad_SourceNodeIdInvalid |
See Table 183 for the description of this result code. |
Bad_ReferenceTypeIdInvalid |
See Table 183 for the description of this result code. |
Bad_ServerIndexInvalid |
The Server index is not valid. |
Bad_TargetNodeIdInvalid |
See Table 183 for the description of this result code. |
Bad_UserAccessDenied |
See Table 182 for the description of this result code. |
Bad_NoDeleteRights |
See Table 183 for the description of this result code. |