Unable to format / erase hard drive
I found this worked perfectly (from the terminal):

diskutil eraseVolume ExFAT MyName diskX


You'll need to change diskX to whatever the number is for your drive. You can find that out in disk utility, select the drive, click info, and look under 'BSD device node'