DELETE FILE Command

Erases a file from a disk.

DELETE FILE [FileName | ?] [RECYCLE]

Parameters

FileName

Specifies the file to delete.

NoteTip

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 noteCaution

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.

Expand imageRemarks

Expand imageExample

Expand imageSee Also


© , 1996-2020 • Updated: 11/10/20
Comment or report problem with topic