Code of RD command recursively deleting directory in DOS


Rd command recursively delete directory

Use the RD command of DOS to delete the entire directory of Folder 2 in folder 1 of disk D.

Specific orders:

Copy codeThe code is as follows:
Rd D: \ folder1 \ folder2 / S / Q

Delete a directory.
RMDIR [/S] [/Q] [drive:]path
RD [/S] [/Q] [drive:]path

/S in addition to the directory itself, all subdirectories and
Papers. Used to delete a tree.

/Q quiet mode, do not require confirmation when deleting directory tree with / S