Erases a file from disk.
Syntax
ERASE FileName | ? [RECYCLE]
Arguments
FileName
Specifies the file to be erased. Include the path with the file name if the file is on a different drive or directory from the current drive or directory.
FileName can contain wildcard characters such as * and ?. For example, to erase backup files with ERASE *.BAK.
?
Displays the Delete dialog box, from which you can choose a file to erase.
RECYCLE
Specifies that the file isn't immediately deleted from disk and is placed in the Windows 95 Recycle Bin.
Caution Exercise caution when using ERASE. Any file erased with this command cannot be retrieved. You aren't warned before the file is erased, even if SET SAFETY is ON.