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.
Servers may delete additional Nodes and References like child Nodes that exist based on a TypeDefinition. The behaviour is Server specific.
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
Name |
Type |
Description |
Request |
|
|
requestHeader |
Request Header |
Common request parameters (see 7.33 for RequestHeader definition). |
nodesToDelete [] |
DeleteNodes Item |
List of Nodes to delete. This structure is defined in-line with the following indented items. |
nodeId |
NodeId |
|
deleteTargetReferences |
Boolean |
A Boolean parameter with the following values: TRUEdelete References in TargetNodes that Reference the Node to delete. FALSEdelete 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. |
|
|
|
Response |
|
|
responseHeader |
Response Header |
Common response parameters (see 7.34 for ResponseHeader definition). |
results [] |
StatusCode |
List of StatusCodes for the Nodes to delete (see 7.39 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.12 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 defines the Service results specific to this Service. Common StatusCodes are defined in Table 182.
Table 29 – DeleteNodes 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 30 defines values for the results parameter that are specific to this Service. Common StatusCodes are defined in Table 183.
Table 30 – DeleteNodes Operation Level Result Codes
Symbolic Id |
Description |
Bad_NodeIdInvalid |
See Table 183 for the description of this result code. |
Bad_NodeIdUnknown |
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. |
Uncertain_ReferenceNotDeleted |
The Server was not able to delete all target references. |