With

find <path to search> -type d -empty

you’ll find all empty directories.

And with

find <path to search> -type d -empty -delete

you can remove all of them.