Deleting a hard drive protected by password with Mac OS X Yosemite
If a partition was encrypted with FileVault, and you have forgotten your password, you need to boot into the Recovery Partition to format the partition / drive. (Hold down Command+R during startup to get there.)  From there, you can use Disk Utility to erase the encrypted partition.