Delete is used to delete a file or directory organized by this Object.
Delete( [in] NodeId objectToDelete );
|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)
|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
|Base Info FileDirectoryType Base|