Skip to content

Instantly share code, notes, and snippets.

@grantpullen
Last active May 22, 2023 03:19
Show Gist options
  • Save grantpullen/91043be15da935805435749febc96be6 to your computer and use it in GitHub Desktop.
Save grantpullen/91043be15da935805435749febc96be6 to your computer and use it in GitHub Desktop.
Windows 10 fast delete
@echo off
echo Delete Folder: %CD%
setlocal
:PROMPT
set /P AREYOUSURE=Are you sure (Y/[N])?
if /I "%AREYOUSURE%" NEQ "Y" goto END
echo Removing Folder: %CD%
set FOLDER=%CD%
cd /
del /F/Q/S "%FOLDER%" > NUL
rmdir /Q/S "%FOLDER%"
:END
endlocal
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\shell\Fast Delete]
[HKEY_CLASSES_ROOT\Directory\shell\Fast Delete\command]
@="cmd /c \"cd %1 && fastdelete.bat\""
@moonjoungyoung
Copy link

Thank you. So useful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment