Files not deleting from computer after deleting them in command prompt


#1

I created a new folder and subfolder in command prompt and then tried to delete it from command prompt using the del c:\Username\myusername\test. When I go to see if the file is deleted it is still there


#2

What tutorial are you following? What command prompt are you using? (Windows cmd, Linux terminal, etc?)


#3

To remove the folder with all its contents(including all interior folders):
rm -rf /path/to/directory.

To remove all the contents of the folder(including all interior folders) but not the folder itself:
rm -rf /path/to/directory/*


#4

Looks like you are using windows:

if its a directory/folder use the rmdir keyword instead of del. If the directory is not empty you may need to pass it parameters, such as:

rmdir /S C:\pathToDirect\