DELETE FILE Command
Erases a file from a disk.
DELETE FILE [FileName | ?] [RECYCLE] |
Parameters
- FileName
-
Specifies the file to delete.
Tip FileName can contain wildcard characters such as * and ?. For example, to delete backup files with the extension .bak in the current directory, issue DELETE FILE *.BAK. If FileName contains spaces, enclose the entire file name in quotes.
- ?
-
Displays the Delete dialog box so you can choose a file to delete.
- RECYCLE
-
Specifies that the file is not immediately deleted from disk and is placed in the Windows Recycle Bin.
Caution Any file deleted with this command cannot be retrieved. Even when the SET SAFETY command is set to ON, you are not warned before the file is deleted.
Remarks
Example
See Also
© , 1996-2020 • Updated: 11/10/20
Comment or report problem with topic
Microsoft Visual FoxPro 9 SP2 Help file, VFPX Edition v1.08