Fixed #2655 Avoid performance issues with hosting configurations that do not allow deleting from /tmp. Now iterates through directory one file at a time to allow bailing if unlink fails on a file.