With

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

you’ll find all empty directories.

And with

find <path to search> -type d -empty -exec rmdir {} \\;

you can remove all of them.