Del Ü
ßßßß
Deletes a file or files.
Syntax: DEL filename [/P] [/S]
ERASE filename [/P] [/S]
filename
Specifies the name of the file that is to be deleted.
/P Prompts you for confirmation upon deletion of the file.
/S Deletes a whole directory tree (same as Deltree).
Using the /P switch
If you use the /P switch, del displays the name of a file and prompts
you with a message in the following format:
filename, Delete (Y/N)?
Press Y to confirm the deletion, N to cancel the deletion and go on to
the next file (if you specified a group of files), or Ctrl+C to stop
the del command.
Using wildcards
You can use wildcards (*.*) to delete all of the files in the current
directory. When you type:
del *.*
Del comes back with the following message and prompt:
All files in directory will be deleted!
Are you sure (Y/N)?
Press Y and ENTER to delete all the files in the directory or N and
ENTER to cancel the deletion.
CAUTION: Once you delete a file from your disk, you may not be able
to retrieve it. Although the undelete command can retrieve
deleted files, it can do so with certainty only if no other
files have been created or changed on the disk. If you
accidentally delete a file that you want to keep, stop what
you're doing and immediately use the undelete command to
retrieve the file.
See Also:
Mirror
Rmdir
Undelete