MgErr FRemove(path);

Purpose

Deletes a file or a directory. If an error occurs, this function does not remove the file or directory.

Parameters

Name Type Description
path Path Path of the file or directory you want to delete.

Return Value

MgErr, which can contain the following errors. If you receive errors from LabVIEW Manager functions, most error names correspond to LabVIEW error codes.

Value Corresponding Error Code or Description
noErr No error.
mgArgErr 1
fIsOpen 5 or directory is not empty.
fIOErr 6
fNotFound 7
fNoPerm 8