Command DEL or ERASE
Deletes one or more files.
DEL [drive:][path]filename [/A[[:]attributes]] [/F] [/P] [/Q] [/S] [/Y]
ERASE [drive:][path]filename [/A[[:]attributes]] [/F] [/P] [/Q] [/S] [/Y]
[drive:][path]filename Specifies the file(s) to delete. /A Delete files with specified attributes, where attributes are
R Read-only files H Hidden files A Archive files S System files - Prefix meaning NOT /F Force deleting of read-only files. /P Prompts for confirmation before deleting each file. /Q or /Y Quite mode or assume YES for all questions. Questions are not displayed. /S Process sub-directories.
When the /S switch and either *.* or a directory name is specified for parameter filename, then command DEL will also remove all the directories, including sub-directories, after deleting all the files, otherwise only the specified file or files are deleted and there is no attempt made to remove any directories or sub-directories.
Also see command DELBUT.