Leftover empty folders pile up after a clean-up or a failed sync. find has a test for them.
find . -mindepth 1 -type d -empty
find . -type f -empty
-empty matches a file of zero bytes or a directory without entries. -mindepth 1 keeps the starting folder out of the list. Looking at the list first is worth the few seconds, since a folder like .git/refs/tags or a mount point can be empty on purpose. If you do delete, find . -mindepth 1 -type d -empty -delete also removes folders that become empty after their children went.
Further reading: find manual page