Hold CMD+R on startup to boot into OS X Utilities.
Open up Disk Utility. Select Macintosh HD (the bottom of the two listed). You may need to right-click and select 'Unlock' to enter your password if it's whited out.
Format the disk. Close Disk Utility.
Select 'Reinstall OS X' and point it to the newly formatted partition.
Done!