Only erase the logical volume, not the physical disk. When you do the latter, it also erases the Recovery Volume. That is why the Utility Menu does not return. Here is the way you should do it.
Install El Capitan or Later from Scratch
If possible, back up your files.
- Restart the computer.Ā Immediately, at or before the chime, hold down theĀ Command and R keys until the Apple logo and progress bar appear. Wait until the Utility Menu appears.
- Select Disk Utility from the Utility Menu and click on theĀ Continue button.
- When Disk Utility loads select the target volume (indented entry, usually named "Macintosh HD") from the Device list.
- Click on theĀ Erase button in Disk Utility's toolbar. A panel will drop down.
- Set the Format type toĀ APFS (SSDs, only for Mojave and Catalina) orĀ Mac OS Extended (Journaled.)
- Click on theĀ Apply button, then wait for theĀ Done button to activate and click on it.
- Quit Disk Utility and return to the Utility Menu.
- SelectĀ Install OS X and click on theĀ Continue button.