Alex Rivera | Logout

"rm -rf" equivalent for Windows?

Asked 2008-09-18T23:08:29.120
741

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 delete directories.

DELTREE was removed from Windows 2000+

Edit
Report

2 Answers

3

rmdir /s dirname

answered 2008-09-18T23:10:48.303
2

You can install GnuWin32 and use *nix commands natively on windows. I install this before I install anything else on a minty fresh copy of windows. :)

answered 2008-09-19T00:03:57.257

Your Answer