This function deletes the file specified.

syntaxSyntax:
DlxFile.Delete()

Return Value

If the file is deleted correctly it returns true. Returns false if the file is open or if the file cannot be removed.

Example

  Copy codeCopy code
var file = new DlxFile("demofile.txt");
file.Delete();

See also