delfiles (rmfiles, in JS) fails to delete files/directories recursively
On Windows at least (not sure about *nix), it takes multiple calls to delfiles/rmfiles to actually delete a full directory tree with thousands of files. Something is amiss here.