del (command)

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

del / erase
Developer(s)DEC, Digital Research, Microware, Microsoft, JP Software, ReactOS Contributors
Operating systemRT-11, RSX-11, OS/8, OpenVMS, DOS, OS-9, FlexOS, OS/2, Microsoft Windows, ReactOS, KolibriOS, SymbOS, DexOS

In computing, del (or erase) is a command in DOS, OS-9,[1] OS/2, Microsoft Windows[2] 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 file system.

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

The del command is also available in the open-source MS-DOS emulator DOSBox.

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.

FlexOS provides only the erase command.[6]


del filename
erase filename

See also[edit]


  1. ^ Paul S. Dayan (1992). The OS-9 Guru - 1 : The Facts. Galactic Industrial Limited. ISBN 0-9519228-0-7.
  2. ^
  3. ^
  4. ^ "Concise Command Language" (CCL)."OS/8 Handbook" (PDF). April 1974. Retrieved 28 November 2017.
  5. ^
  6. ^