The description below is from the book DOS the
Easy Way by Everett Murdock Ph.D.
for information about downloading the book.
Type: Internal (1.0 and later)
DEL (ERASE) [d:][path]filename [/P]
Purpose: Deletes (erases) files from disk.
You can use wildcard characters (? and *) to delete groups of files. If
don`t specify a pathname, the program assumes the files to be deleted are
drive and directory you are currently using. The /P option prompts you
a Y or N for each file selected for deletion.
Be careful when you use this command with wildcard characters: groups of
can be erased with one command entry. For example, if you enter
all files in the current directory that begin with the letter T will be
For more information on using the DEL command, see Chapter 2,
Using Common DOS Commands, in the downloadable book DOS the Easy Way.
To erase the file LETTER3.TXT from the LETTERS directory on the diskette
in drive B, enter
To erase all the files in the current directory, enter
If you use this form of the command (to delete all files in a directory),
program will display the prompt
Are you sure (Y/N)?
If you are sure you are deleting the files you want to delete, press the
Y key to start the erasing process.