Use this function to erase a file.
[Ok :=] File.ERASE(Name)
Type: text or code
The name of the file you want to erase, including the path. When you enter the path, keep in mind these shortcuts:
You can omit the drive designation, if the file is located on the current drive.
You can omit the full path, if the file is located in the current directory.
You can enter only the subdirectory name, if the file is located in a subdirectory of the current directory
Property Value/Return Value
This optional return value shows whether the file was erased.
true if the file was erased; otherwise, false.
If you do not use the return value, and the file cannot be erased, a run-time error will occur. If you do include the return value in your code, it is assumed that you will handle any errors yourself.