4.3.5 Delete

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_NotFoundSee OPC 10000-4 for a general description. A file or directory with the provided NodeId is not organized by this object.
Bad_InvalidStateSee OPC 10000-4 for a general description. The file or directory is locked and thus cannot be deleted.
Bad_UserAccessDeniedSee 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
BrowseNameDelete
References NodeClass BrowseName DataType TypeDefinition ModellingRule
HasPropertyVariableInputArgumentsArgument[] PropertyTypeMandatory
Conformance Units
Base Info FileDirectoryType Base