Because we group together all the various subfolders, we shouldn't give up on trying to delete them when we first fail, even though they're sorted by decreasing depth. Instead, just do the simplest thing, which is to try to to delete all the folders.