Fastest way to delete a folder with a large amount of files
Filed in Tech Tips on Sep.25, 2013
The quickest way is a two line batch file with a first pass to delete files and outputs to nul to avoid the overhead of writing to screen for every singe file. A second pass then cleans up the remaining directory structure:
del /f/s/q foldername > nul
rmdir /s/q foldername
As always be careful but this works fast and easy.
Leave a Reply