Remove all empty directories from the provided folder.