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: 2023/07/04 19:36 by 127.0.0.1