well....u can use ls -ld to display directories(watch for 5th field which indicates file size, if its 0 then the dir is probably empty)
and can use rmdir -i -R <directoryname> to remove them interactively and recursively
U can combine all these commands using '|'
u may need 'cut' command to cut the filename field