How to delete a large folder extremely fast in Windows 10

Hi my name is Carlos, as always we share relevant content of value to our audience and this will not be the exception, stay till the end of the blog post to be updated with the latest trends we have prepared for you. As we told you last week, we read all the comments and create great content for you, so if you haven't already, leave us your email and we'll keep you posted. Without wasting any more time, I hope you read all the relevant content and see you in the next, what they ask us in the comments of Clomatica.

In Windows 10, sometimes you need to exclude folders that may contain a large number of files, and using File Explorer can take a long time. The reason is that during the deletion process, Windows 10 has to perform calculations, analyze and display updates as files and folders are removed from the screen, which usually takes time when deleting a large folder with thousands of files and subfolders.

However, using some command lines (via ghacks), you can significantly speed up the process to seconds. The only caveat is that you should be familiar with the command prompt.

In this guide, you'll learn the fastest way to delete large folders containing thousands of files using command lines and instructions for adding an option to the right-click context menu to automate the process with a single click.

Quickly delete a large folder using the command prompt

To delete a large number of files in Windows 10 using the del Y rmdir commands, follow these steps:

Caution: Typing the wrong path can delete files in the wrong location, so be sure to follow these instructions carefully. You have been warned.

  1. To open Start on Windows 10.

  2. To seek System symbolright click on the top result and select the file Run as administrator option.

  3. Enter the following command to navigate to the folder you want to delete and press Access:

    %USERPROFILE%pathtofolder

    In the command, be sure to update the path with the path to the folder you want to delete.

  4. Enter the following command to delete all files in that folder without viewing the output and press Access:

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

    In the previous command, we used the /f edit to force deletion of read-only files. OR /q The switch activates silent mode. OR /s Switch runs the command for all files in any folder within the folder you're trying to delete. using *.* tells the del command to delete all files, e > nul disables console output, improving performance and speed.

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

    cd..
  6. Enter the following command to delete the folder and all its subfolders and press Access:

    rmdir /q/s FOLDER-NAME

    In the previous command, we used the /q to enable silent mode, /s edit to run the command on all folders e FOLDER NAME is the variable to specify to exclude the desired folder.

    del and rmdir commands

After completing the steps, all files and folders in the location will be removed from your device quickly.

If command lines aren't your thing, you don't usually delete tons of files or you're just looking for a faster way, you can add a right-click context menu option that will run a batch file for the data you want to delete. .

To add a context menu option that will delete files and folders extremely quickly in Windows 10, do the following:

  1. To open Notebook.

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

    @ECHO OFF
    ECHO Delete Folder: %CD%?
    PAUSE
    SET FOLDER=%CD%
    CD /
    DEL /F/Q/S "%FOLDER%" > NUL
    RMDIR /Q/S "%FOLDER%"
    EXIT
  3. click on File, Archive.

  4. Select the Save as option.

  5. Save the file as quick_delete.batand be sure to use the .stick extension.

  6. move the quick_delete.bat files for C:Windows Binder. (This step is necessary, because the file must be in a location that has a path environment variable, but you can always create your own if you're up for the challenge.)

    windows folder
    windows folder

  7. To open Start.

  8. To seek regedit and click on the result above to open the app.

  9. Navigate the following path:

    HKEY_CLASSES_ROOTDirectoryshell

    Quick Tip: You can copy and paste the path into the address bar of the log to quickly navigate to the path.

  10. Right click on the To peel (folder) and select New and click Wrench.

    Shell registry key
    Shell registry key

  11. name the key erase quickly and press Access.

  12. Right click on the newly created key, select New and click Wrench.

  13. name the key I send and press Access.

  14. Double click on I send standard key Rope the correct side.

  15. Change the value of the key to the following line and click the button All right button.

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

    Command to quickly delete folders and files
    Command to quickly delete folders and files

After completing the steps, you can right-click a folder and select the file erase quickly context menu option to delete a large folder super fast.

When you run the command, you will get a security message that prevents you from accidentally deleting files, you can always keep pressing any key or use the Ctrl+C keyboard shortcut or click x to cancel the operation.

Rate this post

If you want to know other articles similar to How to delete a large folder extremely fast in Windows 10 you can visit the category Tutorials.

Leave a Reply

Your email address will not be published. Required fields are marked *

Go up Change privacy settings