Quick Delete files under DOS

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.