ERASE Command
Deletes a file from disk.
Caution |
|---|
|
Exercise caution when using ERASE. Any file erased with this command cannot be retrieved. You are not warned before the file is erased, even if SET SAFETY is ON. |
ERASE FileName | ? [RECYCLE] |
Parameters
- 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. If FileName contains spaces, enclose the entire file name in quotes.
- ?
-
Displays the Delete dialog box, from which you can choose a file to erase.
- RECYCLE
-
Specifies that the file is no't immediately deleted from disk, but rather placed in the Windows Recycle Bin.
Remarks
Example
See Also
© , 1996-2020 • Updated: 11/10/20
Comment or report problem with topic
Caution
Microsoft Visual FoxPro 9 SP2 Help file, VFPX Edition v1.08