PC Tamer's Tips

Deleting a folder and its contents in Windows NT

If you want to delete a folder, including all files and folders within the folder, you can use the rd Command Prompt utility. (This command is very similar to the DOS deltree command.)

To delete a folder and all of its contents, type the following:

rd x:\folder /S

Replace x:\folder with the drive letter and name of the folder you want to delete. If you don't want rd to verify that you really do want to delete the folder and everything below it, you can type the following command:

rd x:\folder /S /Q

Adding the /Q parameter runs rd in "quiet" mode--which means you won't be prompted to confirm the deletion of the folder and its contents. (So be careful!!)