Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This command deletes one or more files.
ERASE [/P] [/F] [/S] [/Q] [[path]file_nameDEL [/P] [/F] [/S] [/Q] [[path]file_name
Parameters
- /P
Prompts for confirmation before deleting each file. - /F
Forces the command processor to delete read-only files. - /S
Deletes specified files from all subdirectories. - /Q
Specifies a quiet mode. The command processor does not ask before deleting each file if you specify a global wildcard. - path
Specifies the path of the directory that contains the file that you want to delete. - file_name
Specifies the name of the file that you want to delete.
Remarks
You can specify multiple files by using wildcards.
See Also
Command Processor Commands | Command Processor Shell
Send Feedback on this topic to the authors