A bit late but an optional parameter to indicate what to delete would be nice.
Something like 1 for just folders and 2 for just file. If none is given then just delete everything (default).

I have no direct use for it but can see some in the future.
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.