If your top level directory is named mydir
:
find mydir -mindepth 1 -maxdepth 1 -type d -exec bash -c 'mv {}/* mydir; rm -ri {}' \;
This will prompt you for each directory, you can change the -i
flag to -f
to force deletion without prompting.