How to upgrade to latest macOS with a clean install?
To perform a clean install, try using Internet recovery.


About macOS Recovery



  Newer Mac computers and some older Mac computers automatically try to start up from macOS Recovery over the Internet when unable to start up from the built-in recovery system. When that happens, you see a spinning globe instead of an Apple logo during startup. To manually start up from macOS Recovery over the Internet, press and hold Option-Command-R or Shift-Option-Command-R at startup. Learn more about these key combinations.