Which command is used to delete the directory and all its contents in one step? A. DEL *.* B. RD C. DELTREE D. CD E. None of the above

DEL *.*
RD
DELTREE
CD E. None of the above

The correct answer is B. RD (Remove Directory).

DEL . will delete all files in the current directory, but it will not delete the directory itself.

DELTREE will delete the directory and all its contents, including subdirectories and files.

CD (Change Directory) changes the current directory.

None of the other options are correct.

Exit mobile version