If possible back up your files before proceeding. Internet/Network Recovery of El Capitan or Later on a Clean Disk You need to establish an Internet connection, preferably Ethernet or fast Wi-Fi. I turned it off and then turn on pressing command + R, then I got MacOs Utilities I select -Disk Utility then choose Internal choose hard drive the one I wanted to erase,I selected APFS the erase, then I went to Reinstall MacOs, then iMac was all black screen so I turned it off then back on and I got a black screen with a flashing icon folder in the middle, then I turned it off turned back n pressing command + R and I got OS X Utilities, I choose Reinstall OS X and after that I get the OS X MAVERICKS and after I click continue I see the picture screen OS X Mavericks Select the disk where you want to install OS X '' but THERE IS NOT DISK TO SELECT' :( Please see picture I didn't back up any of my files because I have another iMac and I have everything there.
My 2013 iMac was working perfectly fine with MacOs Mojave, then I believe I made a big mistake, one time it wasn't printing after many attempts to print, I deleted printers so I could add them again but I could't find the option to add a printer so I decided to reset iMac like I will sell it so I could start from scratch.