Last active
August 4, 2017 06:34
-
-
Save preetpalS/cc3319677fedfd3bfbca302451ba1c9f to your computer and use it in GitHub Desktop.
Windows Fast Directory Delete (Batch File)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:: See https://superuser.com/a/289399 for more information on performance of approach. | |
@echo off | |
echo Windows Fast Directory Delete | |
echo Deleting directory: %1 | |
echo Deleting files (within %1) recursively... | |
del /F/S/Q %1 > nul | |
echo Deleting directory (%1) recursively... | |
rmdir /S/Q %1 | |
echo Process complete. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment