DeleteFile Procedure

Deletes a file. If the file does not exist, this procedure returns successfully.
Declaration
sub DeleteFile(filePath as String)

Parameters

Possible error codes

Example

Code
WriteFileText "myfile.txt", "Hello!"
DeleteFile "myfile.txt" ' deletes the file
DeleteFile "myfile.txt" ' does nothing; file is already deleted