
You can delete files you no longer need with the DEL (delete) command. For example, to delete REPORT.AUG from drive C, type the following and press Enter:
DEL C:REPORT.AUG
To delete the file WRENCHES from drive C, type the following and press Enter:
DEL C:WRENCHES
To display a prompt asking you to confirm that you want to delete the file before
DEL C:WRENCHES /P
You see this prompt:
C:\WRENCHES, | Delete (Y/N)? |
Press Y and Enter for yes or N and Enter for no.
You can use wildcards to delete groups of files. For example, to delete all files on the diskette in drive A (in the current directory), you could type the following and press Enter:
DEL A:*.*
Because deleting all files is a serious procedure,
You may substitute ERASE for DEL in the examples above. ERASE is a synonym for DEL.
Using |