May 3, 2010

"del" Command

DEL Command
DEL is a command used to delete files from the computer. The del command is an internal command and is available in All versions of MS-DOS, Windows 95, Windows 98, Windows ME, Windows NT, Windows 2000, Windows XP, Windows Vista, Windows 7 and Windows 8. The delete command is a recovery console command and is available in Windows 2000 and Windows XP.

Syntax: DEL [drive:][path] [filename] [switches] or ERASE [drive:][path] [filename] [switches]

Windows 2000 and Windows XP syntax: Deletes one or more files:
DEL [switches] names or ERASE [switches] names

Names Specifies a list of one or more files or directories. Wildcards may be used to delete multiple files. If a directory is specified, all files within the directory will be deleted.


  • /P: Prompts for confirmation before deleting each file. 
  • /F: Force deleting of read-only files. 
  • /S: Delete specified files from all subdirectories. 
  • /Q: Quiet mode, do not ask if ok to delete on global wildcard 
  • /A: Selects files to delete based on attributes 
  • Attributes: R: Read-only files, S: System files H Hidden files, A: Files ready for archiving.