User Tools

Site Tools


windows:delete-fast

Fast delete a large folder

Remove all the files:

DEL /F/Q/S *.* > NUL

Then change directory to parent folder to remove the remaining empty folders structure:

RMDIR /Q/S <folder>

Complete file:

fast_delete.bat
@ECHO OFF
ECHO Delete Folder: %CD%?
PAUSE
SET FOLDER=%CD%
CD /
DEL /F/Q/S "%FOLDER%" > NUL
RMDIR /Q/S "%FOLDER%"
EXIT
windows/delete-fast.txt · Last modified: 2019/04/01 17:06 by odefta