Issue DetailsUsing the DOS Prompt window to delete folders that have spaces or no spaces, that are massive in size, can be done rather easily with some simple triggers. Deleting a couple of hundred gigabytes will only take a minute or so, compared to a normal delete in Windows Explorer, which can take a very long time.
Resolve IssueUsing the following method will save you loads of time and clean up the needed space fast, with minimal waiting.
First, you will need to open the folder.
If you want to go into another drive.
C:\Users\YourUser>D:Will place you in that drive.
D:\>To go into a folder and then into a subfolder.
D:\>cd FolderOneD:\FolderOne>If you need to go into a folder with spaces.
D:\FolderOne>cd "My Folder Here"D:\FolderOne\My Folder Here>To read more about the prompts.
Changing Directories in a DOS Prompt«.
Once you're in the drive or folder you want to be in, type the following to delete the folder and all its contents.
WARNING!!!
This information will perform the task without prompts, which means all data will be lost. Make sure you remove any data you wish to keep before performing this operation.
d:\>rmdir /s /q folder to deletewith spaces
d:\>rmdir /s /q "folder with spaces"Once the folder is completely deleted, the prompt will jump back to the drive letter.
[Explanation of triggers] RMDIR = Removes a directory
/S Removes all directories and files in the specified directory, in addition to the directory itself.
/Q Quiet mode, do not ask if ok to remove a directory tree
"folder with spaces" - Must wrap all folder names with double quotes.