How to delete a large folder under windows

robocopy C:\EmptyFolder "C:\Path\To\Your\FolderToDelete" /mir  
rd /s /q "C:\Path\To\Your\FolderToDelete"

One thing you want to note is that if you have a symbol link in the directory you want to delete, the above command will delete the referenced resources as well. You should delete that link first before you run the command.

This entry was posted in Uncategorized. Bookmark the permalink.

Leave a comment