This Service is used to delete one or more Nodes from the AddressSpace.
When any of the Nodes deleted by an invocation of this Service is the TargetNode of a Reference, then those References are left unresolved based on the deleteTargetReferences parameter.
When any of the Nodes deleted by an invocation of this Service is being monitored, then a Notification containing the status code Bad_NodeIdUnknown is sent to the monitoring Client indicating that the Node has been deleted.
Table 28 defines the parameters for the Service.
Table 28 – DeleteNodes Service Parameters
|requestHeader||Request Header||Common request parameters (see 7.28 for RequestHeader definition).|
|nodesToDelete ||DeleteNodes Item||List of Nodes to delete. This structure is defined in-line with the following indented items.|
|nodeId||NodeId||NodeId of the Node to delete.|
|deleteTargetReferences||Boolean||A Boolean parameter with the following values:
TRUE delete References in TargetNodes that Reference the Node to delete.
FALSE delete only the References for which the Node to delete is the source.
The Server cannot guarantee that it is able to delete all References from TargetNodes if this parameter is TRUE.
|responseHeader||Response Header||Common response parameters (see 7.29 for ResponseHeader definition).|
|results ||StatusCode||List of StatusCodes for the Nodes to delete (see 7.34 for StatusCode definition). The size and order of the list matches the size and order of the list of the nodesToDelete request parameter.|
|diagnosticInfos ||Diagnostic Info||List of diagnostic information for the Nodes to delete (see 7.8 for DiagnosticInfo definition). The size and order of the list matches the size and order of the nodesToDelete 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 29 – DeleteNodes Service Result Codes
|Bad_NothingToDo||See Table 177 for the description of this result code.|
|Bad_TooManyOperations||See Table 177 for the description of this result code.|
Table 30 – DeleteNodes Operation Level Result Codes
|Bad_NodeIdInvalid||See Table 178 for the description of this result code.|
|Bad_NodeIdUnknown||See Table 178 for the description of this result code.|
|Bad_UserAccessDenied||See Table 177 for the description of this result code.|
|Bad_NoDeleteRights||See Table 178 for the description of this result code.|
|Uncertain_ReferenceNotDeleted||The Server was not able to delete all target references.|