Most manufactures lock the partitions that contain the OEM software and your recovery files so its a bit tricky to format it all just use a nuking application like DBAN to wipe it all. If i understand you correctly you are trying to replace the factory install Windows 8 with Windows 7 once you have wiped the drive you would have to put in a personal copy of Windows 7 and run the install.