Follow previous persons instructions.
As last resort - How to create a bootable installer for macOS and choose Mojave. Be sure to only use Safari to download the Mojave Installer as Others will not work. The USB drive must be 16 GB in size and empty as the Apple Command will wipe it of all content.
Below is a tested & proven functional method the use the Newly Created Bootable Installer to Wipe the Entire Internal Drive of everything. There is not getting thing back.
Special Notation - this should work Intel Based Apple Computers
Extra Special Notation regarding the Touch ID equipped Apple Computer. About Startup Security Utility and Must Enable from Recovery Mode the ability to boot from External Drive Before Attempting
Shutdown computer and disconnect all external drive Except the newly created Bootable Installer. Restart and immediately hold the OPTION key until the Startup Manager appears and choose the USB Drive. It will present options >> Disk Utilities >> View >> View ALL attached Drives. Choose the Upper Most Drive ( not the volumes indented and list below ). The drive normally is called Apple Media of Apple SSD - that is the drive to Erase and format as APFS with the GUID Partition Map. Once that is done >> backup out of Disk Utilities and choose install macOS. Follow the prompts and it may automatically reboot several time. Upon a final reboot - Setup Assist will present with the newer version of macOS.