The Fastest Way to Delete Large Folders in Windows 11 Safely

A. Create Fast Delete Bath Files

  1. Open Notepad and copy the following code.
@ECHO OFF
ECHO Delete Folder: %CD%?
PAUSE
SET FOLDER=%CD%
CD /
DEL /F/Q/S "%FOLDER%" > NUL
RMDIR /Q/S "%FOLDER%"
EXIT
  1. Save the file with the name “FastDelete.bat”. You can change it by any name.

Make sure you save the file using the (.bat) extension.

  1. Then move the file to the Windows folder, “C:Windows”. You need to move the batch file to a location that is a PATH environment variable. In other words, you need to place a file. bat this in “C:Windows” so that the Windows registry can access it easily.

B. Creating a Fast Delete Context Menu in File Explorer

  1. Press the keys (WIN +R) on the keyboard at the same time. This opens the “Run” dialog box.
  2. Type “regedit” in the “Run” dialog box and click “OK” or press the “Enter” key on your keyboard. This will open the Registry Editor.
  3. If a UAC (User Account Control) warning appears, click “Yes” to grant permission to open the Registry Editor.
  4. Then navigate to “HKEY_CLASSES_ROOT\Directory\shell\”
  5. Right-click on the “shell” folder and select the “New > Key” option.
  6. Next, name the new key “Fast Delete”. You can name whatever you like.
  7. Then in the “Fast Delete” folder you just created, right-click and select “New > Key” to create a new key.
registry fast delete context menu
  1. Name the key “command,”.
  2. Select your newly created “command” folder and on the right panel, double-click on “Default” to modify it.
  3. In the dialog box that appears, type cmd /c “cd %1 && FastDelete.bat. Click the OK button to save it.
  4. Restart your computer to see the results.

Latest Articles