How to hard brick an android phone (Galaxy Nexus)?
As far as I know, your device is not that hard bricked, that you can't boot into the bootloader (fastboot mode). so at every time you should be able to install a custom recovery via fastboot flash recovery recovery.img. if you are in recovery mode with a working recovery, you can do a factory reset (reflash the system, root,... partitions from a protected image) and reboot your device. alternatively you can do a factory reset in fastboot mode.

note: if you erased everything, your recovery will freeze like if you pull off the hard drive from a running Linux. also there are partitions, you are never able to flash, as example the RADIO partition, fastboot or the one, containing the factory reset data. (RADIO partitions contains fine tuned configuration and management of the gprs, lte,... modem)