that sounds a lot like what i have been doing. Back in the days of MS-DOS i could use the move command for large deletions but point the destination at nul. it doesn't work on win9x an later though.
quickest way to perform a mass deletion of files (Windows 11 Pro 22h2)
whenever more than one file is deleted, such as deleting entire directories that are filled with files, it can take an inordinate amount of time before the process finishes in windows, especially when large amounts of large files are involved. this was fine under older OS's when theamount of files was only a couple of hundred Mb's. but in today world there are times when a directory can sometimes have several hundred Gb's worth of files. it can take a while for windows to finish the deletion process. For what ever reason, windows decides to scan each files that is going to be deleted. this takes time to process, even on a SSD. since the advent of the 'search before deletion' (maybe since winXP?) i have dropped to the DOS (CMD) prompt to perform mass deletions of this nature. it allowed the file system to skip this file seeking habit that windows does. but on windows 11 even when performed from the cmd prompt, it seems to take uite a while to finish.
So, what is the quickest way to perform mass file deletions in windows? is there anything that will delete directories quickly regardless of content like the old MS-DOS command deltree?
methods i know of
Windows (GUI)
Shift+Del (keys) (after selecting directories and files for deletion)
(right click) shift+ (select) delete
CMD (DOS Prompt)
rmdir [path:\directory] /s /q
del [path:\directory\*.*] /f /s /q
in the most current scenario the directory to be deleted contains files totaling 732Gb+
Windows for home | Windows 11 | Files, folders, and storage
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
5 answers
Sort by: Most helpful
-
Anonymous
2023-08-05T02:56:48+00:00 -
Anonymous
2023-08-04T07:31:55+00:00 Hi, I'm Elise, a fellow user like yourself and I'd be happy to help with your issue.
I have seen other users discussing this issue and the consensus is that this command is the fastest method:
del /f/s/q [foldername] > nul
https://stackoverflow.com/questions/186737/what...
Kind Regards,
Elise
Note: This is a non-Microsoft website. The page appears to be providing accurate, safe information. Watch out for ads on the site that may advertise products frequently classified as a PUP (Potentially Unwanted Products). Thoroughly research any product advertised on the site before you decide to download and install it.
-
Anonymous
2023-08-05T22:26:45+00:00 cool. thanks, i will check it out.
i just checked the number of files i needed to get rid of. LOL.... it is more than 4 million files totaling well over 1Tb
-
Anonymous
2023-08-05T09:28:36+00:00 There is also a third party tool someone has created, it is reported to be somewhat faster than the native Windows commands:
https://github.com/mhisoft/Rapid-Delete-Pro
Note: This is a non-Microsoft website. The page appears to be providing accurate, safe information. Watch out for ads on the site that may advertise products frequently classified as a PUP (Potentially Unwanted Products). Thoroughly research any product advertised on the site before you decide to download and install it.
-
Deleted
This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.
Comments have been turned off. Learn more