Since you could not figure it out, The first one is the simple one, but it will not work on XP SP2 that why there the second one. If you need more information here is the web page I found the script from, How Can I Delete a Folder and All Its Subfolders?