| del / erase | |
|---|---|
TheReactOS del command | |
| Developers | DEC,Microware,Microsoft,IBM,DR,Datalight,Novell,JP Software, ReactOS Contributors |
| Operating system | RT-11,OS/8,RSX-11,OpenVMS,DOS,OS-9,MSX-DOS,FlexOS,SISNE plus,OS/2,Windows,ReactOS,KolibriOS,SymbOS, DexOS |
| Platform | Cross-platform |
| Type | Command |
Incomputing,del (orerase) is acommand incommand-line interpreters (shells) such asCOMMAND.COM,cmd.exe,4DOS,NDOS,4OS2,4NT andWindows PowerShell. It is used to delete one or morefiles ordirectories from afile system.
The command is available for variousoperating systems includingDOS,MicrowareOS-9,[1]IBMOS/2,[2]MicrosoftWindows[3] andReactOS.[4] It is analogous to theUnixrm command and to theStratusOpenVOSdelete_file anddelete_dircommands.[5]
DECRT-11,[6]OS/8,[7]RSX-11,[8] andOpenVMS[9] also provide thedelete command which can be contracted todel.AmigaDOS[10] andTSCFLEX[11] provide adelete command as well.
Theerase command is supported byTim Paterson'sSCP86-DOS.[12] OnMS-DOS, the command is available in versions 1 and later.[13] It is also available in theopen-source MS-DOSemulatorDOSBox.
DatalightROM-DOS also includes an implementation of thedel anderase commands.[14]
WhileDigital ResearchDR-DOS supportsdel anderase as well, it also supports the shorthand formera, which derived fromCP/M. In addition to this, the DR-DOS command processor also supportsdelq/eraq. These are shorthand forms for thedel/era/erase command with an assumed/Q parameter (for 'Query') given as well.[15]
THEOS/OASIS[16] andFlexOS[17] provide only theerase command.
InPowerShell,del anderase are predefinedcommand aliases for theRemove-Itemcmdlet which basically serves the same purpose.
>del filename>erase filename