DELTREE
Home >>
MS-DOS Reference >>
Command Categories >>
Directory Management >>
DELTREE
Description
Deletes the specified directory and all the directories below it.
Command Syntax
DELTREE [/Y] directoryname [directoryname]
-
/Y deletes the directory directoryname without asking for permission.
Comments
DELTREE can be extremely dangerous if used incorrectly. It removes directories as well as files which makes it harder to undelete them. Do NOT use DELTREE with the following directories unless you are SURE you want to delete them: DELTREE C:\, DELTREE C:\DOS, DELTREE C:\WINDOWS.
DELTREE can be useful to delete files or directories with invalid names, such as those containing a space. To do this, place quote marks around the file or directory thus: DELTREE "A Space".
Printed from the NukeSoft MS-DOS Reference. Copyright
© 1995 - 2006 Marcus Houlden