Del (Erase)
Deletes specified files.
del [drive:][path] filename [; ...] [/p] [/f] [/s] [/q] [/a[:attributes]]
erase [drive:][path] filename [; ...] [/p] [/f] [/s] [/q] [/a[:attributes]]
Parameters
[drive:][path] filename
Specifies the location and name of the file or set of files you want to
delete. Multiple filenames can be used. Filenames can be separated by spaces, commas,
or semicolons.
/p
Prompts you for confirmation before deleting the specified file.
/f
Forces deletion of read-only files.
/s
Deletes specified files from the current directory and all subdirectories.
/q
Quiet mode; does not prompt for delete confirmation.
/a
Deletes files based on specifed attributes.
attributes
Can be any of the following file attributes:
r Read-only
h Hidden
s System
a Archive
- Prefix meaning