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\foldername
to navigate to the folder to be deleted. -
Type
del /f/q/s *.* > nul
to 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 foldername
to deletefoldername
along with its subfolders.Explanation of this command can be found in the Microsoft documentation.