Introducing "deleteEmptyFolders" option to let folders be deleted after they become empty.