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 directory or folder and all it’s contents from the command prompt:
Step 1. Open an Elevated Command Prompt
- Click Start, click All Programs, and then click Accessories.
- Right-click Command prompt, and then click Run as administrator.
- 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
- Click the Start button .
- In the Search box, type command prompt.
- 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 Directory"
Where the full path of the folder is the one which you want to delete. E.g. “c:\data\folder”
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!