Sometimes deleting a folder and it’s 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.

To delete a folder and all it’s contents from the command prompt:

Step 1. Open an Elevated Command Prompt

Windows 7

  1. Click Start, click All Programs, and then click Accessories.
  2. Right-click Command prompt, and then click Run as administrator.
  3. If the User Account Control dialog box appears, confirm that the action it displays is what you want, and then click Continue.

Windows 8 and higher

  1. Click the Start button .
  2. In the Search box, type command prompt.
  3. In the list of results, right-click Command Prompt, and then click Run as administrator.

Step 2. Type in the following command

RD /S /Q "The Full Path of Folder"

Where the full path of the folder is the one which you want to delete.  E.g. “c:\data\folder”

Notes

Please be aware that the command to delete a folder on your windows computer is final.  The delete items won’t go to the recycle bin first and if you put in the wrong path you could be in trouble.  If in doubt, backup first!