How to delete a file using the Command PromptTo start the command prompt in Windows left click Start then Run. Type in "
CMD" (without the "") and hit
Enter.
1. First locate the file that you would like to delete.
2. Then on the command prompt type:
del filename.txt
3. and then hit
Enter.
4. Now check to see if file has been deleted type:
dir
and then hit
Enter has file has been deleted?
Note: If you want to delete a file with spaces in its name you must wrap the name in "". For example:del "filename 1"If you want to delete more than one file you can do so like this:
del "filename 1.txt" "filename 2.txt" del "filename 3.txt"How to delete a folder using the Command PromptTo start the command prompt in Windows left click Start then Run. Type in "CMD" (without the "") and hit Enter.
1. First locate the folder that you would like to delete.
2. Then on the command prompt type:
rmdir foldername
3. and then hit
Enter.
4. Now check to see if file has been deleted type:
dir
and then hit
Enter has folder been deleted?
Note: If you want to delete a folder with spaces in its name you must wrap the name in "". For example:
rmdir "foldername 1"If you want to delete more than one folder you can do so like this:
rmdir "foldername 1" "foldername 2" "foldername 3"