Errr.....? hu?

Why not just use the API SHFileOperation
with
wFunc=FO_DELETE
fFlags=FOF_FILESONLY

in SHFILEOPSTRUCT

Not tested, but it should nuke all files in a given Folder, not deleting Folder/SubFolder