How to delete large folders (super) fast on Windows 11


Share post:

When deleting folders with a large number of files on Windows 11, using File Explorer can be a time-consuming process. This is because the system performs calculations and displays the progress update as files and folders are being deleted. As a result, deleting a folder with thousands of files and subfolders can take a long time.

If you’re trying to delete folders with many files, you can speed up the process to only a few seconds using commands. The only caveat is that you need to be comfortable using Command Prompt.

This guide will teach you the fastest method to delete large folders through Command Prompt and the instructions to add an option on the right-click context menu to automate the process.

Warning: Specifying the wrong path may delete files in the wrong location, so use these instructions carefully. Also, it’s important to mention that modifying the Registry can cause serious problems if not used properly. It’s assumed you know what you’re doing and created a full backup of your system before proceeding. You have been warned.

Delete large folders fast from Command Prompt

To delete large folders on Windows 11 quickly, use these steps:

  1. Open Start on Windows 11.

  2. Search for Command Prompt, right-click the top result, and select the Run as administrator option.

  3. Type the following command to navigate to the folder to delete and press Enter:


    In the command, update the path to the folder you have to delete.

  4. Type the following command to delete the files in that folder without showing the output and press Enter:

    del /f/q/s *.* > nul

    In the command, the /f option forces the deletion of read-only files. The /q option enables quiet mode. The /s option executes the command for all files inside the folder you’re trying to remove. Using *.* tells the del command to remove every file and > nul disables the console output, improving the deletion performance.

  5. Type the following command to back up one level in the folder path and press Enter:

  6. Type the following command to delete the folder and all its subfolders, and press Enter:

    rmdir /q/s FOLDER-NAME

    In the command, the /q switch enables quiet mode, the /s option to run the command on all the folders, and “FOLDER-NAME” is the variable to specify to delete a specific folder.

    Windows 11 command delete large folders

Once you complete the steps, all the files and folders in the location will be deleted quickly from the computer.

Alternatively, to delete larger folders even faster, it’s possible to create a script and modify the Registry to add a new entry in the right-click context menu to delete folders with a lot of files quickly.

To delete large folders quickly from the right-click context menu on Windows 11, use these steps:

  1. Open Start.

  2. Search for Notepad, right-click the top result, and choose the Run as administrator option.

  3. Copy and paste the following lines into the Notepad text file:

    ECHO Delete Folder: %CD%?
    CD /
    DEL /F/Q/S "%FOLDER%" > NUL
  4. Click on File.

  5. Select the Save As option.

  6. Browse to the following path: C:\Windows

  7. Save the file as quick_delete.bat, and ensure it uses the “.bat” extension. 

    Windows 11 script delete large folders

  8. Open Start.

  9. Search for regedit and click the top result to open the app.

  10. Browse the following path:

  11. Right-click the Shell (folder) key, select New, and click on Key.

    Windows 11 Shell Registry key

  12. Name the key Fast Delete and press Enter.

  13. Right-click the newly created key, select New, and click on Key.

  14. Name the key command and press Enter.

  15. Double-click the command key default String on the right side.

  16. Change the value of the key with the following line.

    cmd /c "cd %1 && quick_delete.bat"

    Windows 11 command to delete folders fast

  17. Click the OK button

After you complete the steps, you can “Shift + right-click” a large folder and select the “Fast Delete” option from the legacy context menu to remove it from the system.

When using this method, the system will show a prompt to prevent accidental deletion. You can always proceed by pressing any key, using the “Ctrl + C” keyboard shortcut, or clicking the “X” button to cancel the operation.

We may earn commission for purchases using our links to help keep offering the free content. Privacy policy info.

All content on this site is provided with no warranties, express or implied. Use any information at your own risk. Always backup of your device and files before making any changes. Privacy policy info.

Source link


Please enter your comment!
Please enter your name here

Related articles

Tesla Autopilot arbitration win could set legal benchmark in auto industry

In a victory for Tesla, a California federal judge ruled over the weekend that a group of...

Max Q: Mining moon water

Hello and welcome back to Max Q! In this issue: Mining water on the moon with Starpath Robotics News from...

Republicans still don’t know how to talk to young voters online

In an appeal to younger voters, Republican presidential candidate Vivek Ramaswamy — who proposed raising the voting...

Ousted Flexport CEO Dave Clark strikes back

Dave Clark, the former Amazon executive who was ousted as CEO of Flexport just a year into...