Trying to reinstall OS X on a linux drive I have decided I don't want to deal with the bugs of linux and would like to go back to OS X. Sadly no matter what I do I cannot seem to get OS X to read the file system that linux uses. I tried formatting it but could not get it to work. After loads of googling I ave up and decided I would ask here.

Any ideas?
Assuming your internal drive is not a Fusion drive, the following Terminal application command should setup your internal drive for an installation of macOS. You will need to run this command from macOS Internet Recovery. Or, if you are booted from an external drive.

diskutil  partitionDisk  disk0  1  GPT  JHFS+  "Macintosh HD"  R