Back to Assorted Command Prompt Commands
ERASE Command
ERASE: ERASE command is used to delete file from file system.> erase doc3.txt
Output:
C:\DOS_CLEARN>dir
Volume in drive C is OS
Volume Serial Number is 44F9-CC8C
Directory of C:\DOS_CLEARN
23-05-2018 00:00 <DIR> .
23-05-2018 00:00 <DIR> ..
22-05-2018 23:42 43 doc.txt
23-05-2018 00:00 0 doc3.txt
2 File(s) 43 bytes
2 Dir(s) 821,376,778,240 bytes free
C:\DOS_CLEARN>erase doc3.txt
C:\DOS_CLEARN>dir
Volume in drive C is OS
Volume Serial Number is 44F9-CC8C
Directory of C:\DOS_CLEARN
23-05-2018 00:01 <DIR> .
23-05-2018 00:01 <DIR> ..
22-05-2018 23:42 43 doc.txt
1 File(s) 43 bytes
2 Dir(s) 821,378,523,136 bytes free
Share this page:




Report Error in Content