Not sure if this is the right place to put this, but it's the best I could think of.
Situation: there are five folders called "FolderA" "FolderB" etc etc. Each folder has a folder nested directly "beneath" (not proper parlance, i know, I cant remember) that is also called "FolderA" etc. I want to run a program or script to remove all the duplicate folders. This situation usually is a product of unzipping compressed archives with WinRAR or 7-Zip. I have more than just the five, fyi, try over 500. People need to learn how to compress stuff better.