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
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.
To open Start on Windows 10.
To seek System symbolright click on the top result and select the file Run as administrator option.
Enter the following command to navigate to the folder you want to delete and press Access:
In the command, be sure to update the path with the path to the folder you want to delete.
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
/fedit to force deletion of read-only files. OR
/qThe switch activates silent mode. OR
/sSwitch 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
> nuldisables console output, improving performance and speed.
Enter the following command to go back one level in the folder path and press Access:
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
/qto enable silent mode,
/sedit to run the command on all folders e FOLDER NAME is the variable to specify to exclude the desired folder.
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:
To open Notebook.
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
click on File, Archive.
Select the Save as option.
Save the file as quick_delete.batand be sure to use the .stick extension.
move the quick_delete.bat files for
C:WindowsBinder. (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.)
To open Start.
To seek regedit and click on the result above to open the app.
Navigate the following path:
Quick Tip: You can copy and paste the path into the address bar of the log to quickly navigate to the path.
Right click on the To peel (folder) and select New and click Wrench.
name the key erase quickly and press Access.
Right click on the newly created key, select New and click Wrench.
name the key I send and press Access.
Double click on I send standard key Rope the correct side.
Change the value of the key to the following line and click the button All right button.
cmd /c "cd %1 && quick_delete.bat"
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.
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.