Skip to main content

How to Delete a File/Folder Permanently using Command Prompt (cmd) [ Windows ]

How to Delete a File/Folder Permanently using Command Prompt (cmd) [ Windows ]

What is Command Prompt?

Command Prompt, also known as cmd.exe or cmd, is the command-line interpreter on Windows NT, Windows CE, OS/2 and eComStation operating systems. It is the counterpart of COMMAND.COM in DOS and Windows 9x systems (where it is also called "MS-DOS Prompt"), and analogous to the Unix shells used on Unix-like systems. 

Reason Why the file/folder cannot be deleted:

Sometimes deleting a folder and its contents from Windows Explorer can take an eternity especially when dealing with large folders as it deletes each file one by one.  The faster way is to delete the folder from the windows command prompt.

Code for deleting a file:

First, open the cmd then type the following command line and
hit enter.

DEL /F /Q /A <Path of the file>

How to Delete a File/Folder Permanently using Command Prompt (cmd) [ Windows ]

Code for deleting a folder:

First, open the cmd then type the following command line and hit enter.

RD /S /Q <Path of the Folder>

How to Delete a File/Folder Permanently using Command Prompt (cmd) [ Windows ]

Popular posts from this blog

How to Recover Deleted Data from USB/Memory Card | Easy Way

There are many Software's to recover data from USB or Memory card/flash drive. Most of these are not work effectively or these are expensive to buy. Today, I will introduce a software that is very effective and safe. It is very simple and easy to use. That is  SAFE 365 SD CARD DATA RECOVERY. How To Use SAFE 365: Step 1:  First of all, download the software by  Clicking here  and then Install it. Step 2:  Open  SAFE 365