Programming Field

Deltree - DOS/Command Prompt Reference

[MS-DOS, Windows 95/98/Me only] Deletes the directory and its containing files and directories.

Syntax

deltree[.exe] [/Y] <directory> [<directory2> ...]

Options

<directory>, <directory2> Specifies one or more directory names to delete.
/Y Suppresses the confirmation before deleting the directory.

Details

This command deletes specified directory and files/directories in its directory. Unlike Windows delete operation, the directory is not moved to the Recycle Bin, so basically the deletion cannot be undone ([MS-DOS] ‘Undelete’ program provides the feature like the Recycle Bin).

[Windows NT series] To delete the directory and its containings, use Rmdir with /S option.

Samples

deltree /Y test

Deletes the directory ‘test’ without confirmation prompt.