How To Delete Files, Folders, Sub Folders Using Command Prompt

by Vivek on October 2, 2010

Deleting files, folders or subfolders from a computer doesn’t require any technical skill. You can do it by right click and selecting delete option. But deleting files securely or permanently from computer from command prompt is not so easy. This article guides you how to delete file, folder or subfolder permanently and securely from your computer.

1) Click on “Start” menu button and type “CMD” in the search box and press Enter.

cmd stat menu How To Delete Files, Folders, Sub Folders Using Command Prompt
2) This will open a command prompt window.

clip image004 How To Delete Files, Folders, Sub Folders Using Command Prompt
3) Here I have to delete a sub folder Adobe CS5 which is present inside the folder Photoshop CS5 extended trial. The main folder is present inside the F drive.

Type the command as shown in below screenshot to go to that folder path. You have to select the hard disk partition and then the folder name inside which the file exist  (in my case it is the F drive and the folder name is Photoshop Extended CS5 Trial).

clip image006 How To Delete Files, Folders, Sub Folders Using Command Prompt

4) Type the command del before the folder you want to delete (as shown in the screenshot below). This will delete the folder from that drive permanently (in my case the folder name is “Adobe CS5” )

clip image008 How To Delete Files, Folders, Sub Folders Using Command Prompt

5. It will ask for your permission. If you are sure then press Y key of your keyboard. When you press the Y button, it will delete your post permanently.

clip image010 How To Delete Files, Folders, Sub Folders Using Command Prompt

Note:This command will permanently delete all the files from that folder. So before issuing this command, backup all your data so that you may not loose it for forever.

{ 3 comments… read them below or add one }

Manish Singh October 2, 2010 at 8:36 am

Great work dear . Keep it up now .

In CMD if you type “help” you will found all the commands.
And there is given how to use those commands.

Reply

sureshpeters October 3, 2010 at 12:02 pm

its the same thing can be done in command prompt in cpanel of our websites??

Reply

Infiq October 26, 2010 at 10:32 pm

“syteminfo” command gives you all information about your system…

Reply

Leave a Comment

Previous post:

Next post: