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.

Table 28 – DeleteNodes Service Parameters
NameTypeDescription
Request

requestHeader

Request HeaderCommon request parameters (see 7.32 for RequestHeader definition).

nodesToDelete []

DeleteNodes ItemList 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 HeaderCommon response parameters (see 7.33 for ResponseHeader definition).

results []

StatusCodeList 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 InfoList 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.

Table 29 – DeleteNodes 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.4.4 StatusCodes

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

Table 30 – DeleteNodes Operation Level Result Codes
Symbolic IdDescription
Bad_NodeIdInvalidSee Table 179 for the description of this result code.
Bad_NodeIdUnknownSee 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.
Uncertain_ReferenceNotDeletedThe Server was not able to delete all target references.