Windows Server or ordinary operating system often encounter a lot of generated temporary files need to be deleted, if you need to delete a lot of folders, and the file is very large, if you select a folder by the mouse and then directly delete will respond very slowly, especially the number of files is also large, The Windows system also calculates the file size before it is deleted, and the turtle speed lets you fly without words. With the following two DOS commands, you can quickly delete a large number of folders and files.
The commands are as follows:
rmdir [Drive:]path [/S] [/q]
del [Drive:]path [/S] [/q]
Where RmDir is the same as RD command.
/S means that all subdirectories and files under the specified directory will be deleted in addition to the directory itself.
/q indicates quiet mode and does not need to be confirmed when deleted.
If you delete all the files in the D:\temp\ directory, the following is the wording:
RmDir d:\temp\/s/q
Del d:\temp\/s/q
It is recommended to use the RmDir command, which is more efficient and faster than del in bulk deleting large numbers of files.
Quick Delete files under DOS