I wanted to delete my Linux partition, but I don't know why my OS X partition was also deleted.
So, I then reformatted the partition and installed a new OS X (Yosemite) on that partition.
I am trying to recover my lost data, I tried many applications such as Disk Drill, EaseUs, etc. But none of them was able to recover a single file from my 300 GB SSD!