Center for Technical Education
Computer Technology
Internal DOS Commands


ABOUT DEL (erase)
   Del which is short for delete and is a command used to delete files permanently from the computer.

   Careful how you use this command!
DEL (erase) SYNTAX
   Deletes one or more files.     DEL [drive:][path]filename [/P]     ERASE [drive:][path]filename [/P]         [drive:][path]filename     Specifies the file(s) to delete. Specify multiple files by using wildcards.         /P    Prompts for confirmation before deleting each file.
EXAMPLES
    del test.tmp = Deletes the test.tmp in the directory that you currently are in, if the file exists.

    del c:\windows\test.tmp = Delete the c:\windows\test.tmp in the windows directory if it exists.

    del c:\windows\temp\*.* = (* is for wild character(s)) *.* indicates that you would like to delete all files in the c:\windows\temp directory.

    del c:\windows\temp\?emp.tmp = (? is a single wild character for one letter) This command would delete any file ending with emp.tmp such as kemp.tmp or temp.tmp...