Topic group Related topics Example
Removes a file from a disk.
ERASE is similar to the File objectís delete(†) method, except that as a command, the file name argument is treated as a name, not a character expression. It does not require quotes unless it contains spaces or other special characters. If the name is in a variable, you must use the indirection or macro operators. Also, ERASE does not support sending a file to the Recycle Bin.
See delete(†) for details on the operation of the command.
The DELETE FILE command is identical to ERASE.