Delete is used to delete a file or directory organized by this Object.

Signature

Delete(

[in] NodeId objectToDelete

);

Argument

Description

objectToDelete

The NodeId of the file or directory to delete.

In the case of a directory, all file and directory Objects below the directory to delete are deleted recursively.

Method Result Codes (defined in Call Service)

Result Code

Description

Bad_NotFound

See OPC 10000-4 for a general description. A file or directory with the provided NodeId is not organized by this object.

Bad_InvalidState

See OPC 10000-4 for a general description. The file or directory is locked and thus cannot be deleted.

Bad_UserAccessDenied

See OPC 10000-4 for a general description.

Table 11 specifies the AddressSpace representation for the Delete Method.

Table 11 – Delete Method AddressSpace definition

Attribute

Value

BrowseName

Delete

References

NodeClass

BrowseName

DataType

TypeDefinition

ModellingRule

HasProperty

Variable

InputArguments

Argument[]

PropertyType

Mandatory

Conformance Units

Base Info FileDirectoryType Base