5.8.4 DeleteNodes
5.8.4.1 Description
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.
5.8.4.2 Parameters
Table 28 defines the parameters for the Service.
| Name | Type | Description |
|---|---|---|
| Request | ||
requestHeader | Request Header | Common request parameters (see 7.32 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. |
| Response | ||
|---|---|---|
responseHeader | Response Header | Common response parameters (see 7.33 for ResponseHeader definition). |
results [] | StatusCode | List of StatusCodes for the Nodes to delete (see 7.38 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. |
5.8.4.3 Service results
Table 29 defines the Service results specific to this Service. Common StatusCodes are defined in Table 178.
| Symbolic Id | Description |
|---|---|
| Bad_NothingToDo | See Table 178 for the description of this result code. |
| Bad_TooManyOperations | See Table 178 for the description of this result code. |
5.8.4.4 StatusCodes
Table 30 defines values for the results parameter that are specific to this Service. Common StatusCodes are defined in Table 179.
| Symbolic Id | Description |
|---|---|
| Bad_NodeIdInvalid | See Table 179 for the description of this result code. |
| Bad_NodeIdUnknown | See Table 179 for the description of this result code. |
| Bad_UserAccessDenied | See Table 178 for the description of this result code. |
| Bad_NoDeleteRights | See Table 179 for the description of this result code. |
| Uncertain_ReferenceNotDeleted | The Server was not able to delete all target references. |