How to delete 100,000 empty folders?

Hi in my vault we had some pretty complicated templates that we are discontinuing.  Over the course of 2 years they have generated thousands of empty folders... is there a good way to find and delete them?  Thanks!

SolidworksSolidworks Pdm enterprise Pdm