Removes a file from a disk.

Syntax

DELETE FILE <filename>

Description

DELETE FILE 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 contain spaces or other special characters. If the name is in a variable, you must use the indirection or macro operators. Also, DELETE FILE does not support sending a file to the Recycle Bin.

See delete( ) for details on the operation of the command.

The ERASE command is identical to DELETE FILE.