If there's an encrypted (filevault) volume, both of these methods in terminal will erase the given drive. However, what differences exist between the two? Which is more secure?
diskutil eraseDisk JHFS+ Macintosh\ HD disk22
diskutil cs list // find logical volume group UUID diskutil delete *UUID*