Deleting Files

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 MS-DOS deletes it, use the /P switch. Type the following and press Enter:

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, MS-DOS prompts you to confirm the command when you use the * . * wildcard combination with the DEL command. Press Y and Enter to confirm the command and delete all files on the diskette in drive A or N and Enter to cancel the command.

You may substitute ERASE for DEL in the examples above. ERASE is a synonym for DEL.

Using MS-DOS with Your Equity 386SX

4-15