An empty directory is characterized as a folder that doesn't have any listed objects, even though some objects may have the delete marker as the current version.
After deleting an empty directory, the object list is refreshed to show the change.
To delete an empty directory: