I need a way to recursively delete a folder and its children.
Is there a prebuilt tool for this, or do I need to write one?
DEL /S doesn\'t dele
DEL /S
For deleting a directory (whether or not it exists) use the following:
if exist myfolder ( rmdir /s/q myfolder )