erase boot disk mac terminal

Use this command:

diskutil eraseDisk JHFS+ UntitledUFS disk2