Question: how to do a clean install of macos?
Answer: Start up - or restart - your Mac while holding down the Option key (also known as Alt). This will take you to Startup Manager. Choose to install your chosen version of macOS from the external drive. Select Disk Utility.