... to delete the same directory multiple times - where there are many files in the same directory.
It should only attempt once.
And each redundant attempt causes a "Directory ... cannot be deleted" errors, requiring the user to dismiss potentially hundreds of error dialogs.