Since cygwinCygwin comes with GNU find, you can do this:
find . -type d -empty -delete
find . -type d -empty -delete
orOr to avoid the noise when a folder no longer exists:
find . -type d -empty -execdir rmdir {} +
find . -type d -empty -execdir rmdir {} +