Delete directory *contents* only

It would be nice if the Delete Directory action would allow for deleting a tree but leaving the toplevel (specified) directory alone.

I have a common-ish folder for our buildscripts that I would like to clean out completely (recursively), but I'm a bit worried about deleteing the toplevel folder itself (that it might fail because some process still holds a lock to the folder / or that it might succeed and some other process fails because the expected folder ain't there).

So my wish would be to have an additional option for the Delete Directory action:
[ ] Leave the toplevel directory (only delete contents)

As far as I can see, to achieve this at the moment I would need to chain together a file set define and file set delete files ...

cheers,
Martin

Addendum: I just noticed that FileSetDeleteFiles doesn’t work, as I can include directories in the file set, but it’s not possible to delete these via FileSetDeleteFiles.

Addendum: I also noticed that the Delete File(s) action is “missing” an option to log all the files deleted.