Use the ERASE or DEL command to delete one or more files.
|DEL||[drive:][path]filename [/P] [/N] [/F]|
|ERASE||[drive:][path]filename [/P] [/N] [/F]|
|drive:\path\filename||Specifies the file to delete. Global file name characters * and ? can be used in the file name specified.|
|/P||Prompts for confirmation before deleting each file.|
|/N||Prevents the message "Are you sure (Y/N)?" from being displayed as files are deleted.|
|/F||Permanently deletes a file. (The file cannot be recovered with the UNDELETE command.)|
RD /S [/Q]instead of DELTREE.
page last modified: 2023-01-27