del (command)

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search

In computing, del (or erase) is a command in DOS, OS/2, Microsoft Windows[1] and ReactOS command-line interpreters (shells) such as COMMAND.COM, cmd.exe, 4DOS, NDOS, 4OS2, 4NT and Windows PowerShell. It is used to delete one or more files or directories from a filesystem.

The command is analogous to the Unix rm command and to the OpenVOS delete_file and delete_dircommands.[2] RT-11, RSX-11 and OpenVMS also provide the delete command which can be contracted to del. AmigaDOS provides a delete command as well.[3]

In Windows PowerShell, del and erase are predefined command aliases for the Remove-Item cmdlet which basically serves the same purpose.

While DR-DOS supports del and erase as well, it also supports the shorthand form era, which derived from CP/M. In addition to this, the DR-DOS command processor also supports delq/eraq. These are shorthand forms for the del/era/erase command with an assumed /Q parameter (for 'Query') given as well.

Syntax[edit]

del filename
erase filename

See also[edit]

References[edit]