Accidentally deleted Macintosh HD on Mid 2011 iMac

Hello I have a Mid 2011 iMac. When trying to do a factory reset I accidentally deleted Macintosh HD and I can’t figure out a way to get it back. When I turn on the computer and go into disk utility the only thing that shows up is OS X Base System. It won’t allow me to do partition, erase, or unmount which I assume is because it’s the OS X Base System.I have tried Reinstalling MacOS through the Mac OS Utilities that didn’t work at all, I tried doing a Bootable usb but it wouldn’t work the usb would show up but it wouldn’t do anything in regards to reinstalling everything I need to. I’ve been trying to figure out if there is anything I can do through the terminal but I also haven’t had any luck. Thanks in advance for any advice. (Also I live in a very rural area and the closest Apple store is hours away)

submitted by /u/Ewhittaker13
[link] [comments]