Q. In DOS, which of the following command is used to delete all the files as well as sub-directories of a directory?
β
Correct Answer: (D)
Deltree
Explanation: Deltree, short for delete tree, is a command in DOS to delete a directory including all files and sub directories that are in it. All files and sub directories subordinate to the directory you are deleting will also be deleted regardless of any attributes. This means that even if a file has hidden, system, read only or other attributes, it will still be deleted : DELTREE [1Y] [drive :] path [[drive:] [path[...]]
Explanation by: Chandrakant
Deltree, short for delete tree, is a command in DOS to delete a directory including all files and sub directories that are in it. All files and sub directories subordinate to the directory you are deleting will also be deleted regardless of any attributes. This means that even if a file has hidden, system, read only or other attributes, it will still be deleted : DELTREE [1Y] [drive :] path [[drive:] [path[...]]