please dont rip this site
DEL and ERASE + Deleting Files

Deletes files.


PC-DOS 2.0+ (revised from 1.1)

MS-DOS equivalent: DEL/ andERASE (2.0+)




ERASE [d:][path]filename

DEL [d:][path]filename


[d:][path]filename Specifies the file or group of

files to be erased.



BEFORE: File directory lists MSTEST.TXT in current directory.

AFTER: File directory no longer lists MSTEST.TXT in current



BEFORE: File directory lists all files created in current


AFTER: File directory lists no files in current directory.

Note that when you use the global wildcard *.*, you will be

prompted to confirm the deletion (see the MESSAGES that follow).


BEFORE: File directory lists all files in directory C:\WP\FILES

with the extension .CAP.

AFTER: File directory lists no files with the extension .CAP in

directory C:\WP\FILES.


BEFORE: File directory lists all files in directory C:\WP.

AFTER: File directory lists no files in directory C:\WP.


Are you sure (Y/N)?

You have specified *.* (all files regardless of extension). Enter

Y to erase all files on the specified drive and directory;

otherwise, enter N.

File not found

DOS was unable to locate the file(s) you specified. Check the

path name and try again.

Invalid number of parameters

Check the path name and try again.


You can restore files deleted with the DEL or ERASE command

with a DOS utility such as the Norton Utilities or Mace

Utilities, or by using the DOS DEBUG program.


The DEL and ERASE commands are used to erase files, not

directories. You may issue the command as DELETE, DEL, or ERASE.

If no drive is specified, the current drive is assumed. If you

specify a directory instead of a file, all files in that

directory will be erased. You cannot delete files that have been

marked as read-only. Versions of the command after version 1.0

require confirmations to prompts before erasing.


[For related topics, press R]


ATTRIB Command

COPY Command

DIR Command

PRINT Command

RENAME EN) Command


SHARE Command

TYPE Command

VERIFY Command

XCOPY Command

file: /Techref/dos/command/del.htm, 2KB, , updated: 1999/2/20 11:24, local time: 2024/4/13 18:10,

 ©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?
Please DO link to this page! Digg it! / MAKE!

<A HREF=""> dos command del</A>

After you find an appropriate page, you are invited to your to this massmind site! (posts will be visible only to you before review) Just type a nice message (short messages are blocked as spam) in the box and press the Post button. (HTML welcomed, but not the <A tag: Instead, use the link box to link to another page. A tutorial is available Members can login to post directly, become page editors, and be credited for their posts.

Link? Put it here: 
if you want a response, please enter your email address: 
Attn spammers: All posts are reviewed before being made visible to anyone other than the poster.
Did you find what you needed?

  PICList 2024 contributors:
o List host: MIT, Site host, Top posters @none found
- Page Editors: James Newton, David Cary, and YOU!
* Roman Black of Black Robotics donates from sales of Linistep stepper controller kits.
* Ashley Roll of Digital Nemesis donates from sales of RCL-1 RS232 to TTL converters.
* Monthly Subscribers: Gregg Rew. on-going support is MOST appreciated!
* Contributors: Richard Seriani, Sr.

Welcome to!