I was updating my backup drive and needed to delete some huge folders on that drive. Deleting large folders in Windows explorer could take quite a while because Windows would first calculate the folder’s size, which is time-consuming. Therefore, it would be great to know how to quickly delete huge folders on Windows.
Solution
Suppose the large folder to be deleted is called foldername.
- Open cmd.
- Type
cd C:\backup\foldernameto navigate to the folder to be deleted. -
Type
del /f/q/s *.* > nulto delete all files infoldername, while leaving the folder structure intact (for now).Explanation of this command can be found in the Microsoft documentation.
- Type
cd ..to navigate to the parent folder offoldername. -
Type
rmdir /q/s foldernameto deletefoldernamealong with its subfolders.Explanation of this command can be found in the Microsoft documentation.