Deleting Files - the DEL Command

You may discover that there are some files on the disk that you do not require anymore. Unwanted files occupy space on the disk. Therefore, it is desirable to remove such files. Assume that there is a file CON.BAK on the hard disk, which you do not require anymore and want to remove or delete. This can be done by issuing the following command:

C>DEL C:CON.BAK <Enter>

This command deletes the file CON.BAK from the hard disk. DOS does not, however, give any confirmation of deletion of this file. If you wish to delete a file from the A drive, you have to specify the drive A before the file name. For example:

C>DEL A:CONFIG.BAK <Enter>

You can also specify a path to DOS with the DEL command. If you wish to delete a file named LOCAL.3, which exists in the directory NETWORK on the C disk, the command you could give is

C>DEL C: \NETWORK\LOCAL.3 <Enter>