Try this
I've recently run into this problem with an external drive. Have you tried formatting the Yosemite partition first? I think Disk Utility sees that there are system-level files on the drive and lock any changes "for your protection."
Once I formatted the Yosemite partition and restarted my computer, Disk Utility gave me the option to delete it. Go figure!