Deltree Ü
ßßßßßßßß
Deletes a directory tree as well as all files and subdirectories in it.
Syntax: DELTREE [/Y] [/V] [drive:]path [[drive:]path[...]]
drive:path
Specifies the name of the directory you want to delete. The
deltree command will delete all the files contained in the
directory you specify, as well as all subdirectories and files
in the directory. You can specify more than one directory.
/Y Delete specified items without prompting for confirmation.
/V Report counts and totals when finished.
You can also use deltree for deleting files.
Using the /V switch
When you specify the /V switch, deltree counts how many files and
directories it deletes and gives you a summary with that information.
For example, if you have a directory named reports and jan, feb, mar
and apr subdirectories, and you type the following command:
C:\>deltree reports
Delete directory "C:\REPORTS" and all its subdirectories? [yn] y
Deleting C:\REPORTS
* Files deleted: 12 Total of sizes (276,332 bytes (269.86 K)
* Subdirectories removed: 4
Using the /Y switch
Normally, when you run the deltree command, it prompts to ask you for
confirmation whether or not you want to delete a directory. For
exmaple, if you have a directory named reports and you type:
C:\>deltree reports
Deltree will respond:
Delete directory "reports" and all its subdirectories? [yn]_
To delete the directory, files, and subdirectories, press Y and ENTER.
To cancel the deletion, press N and ENTER.
See Also:
Del
Rmdir