I see that the drive is in use by a process and that makes that it cannot be erased
First, startup the Mac from macOS recovery (cmd+R on startup) after that, select disk utility in the recovery menu. Select the disk you want to erase, click erase in the tool bar of disk uitility. After that, you can install macOS anew if this is needed (when this is about your startup drive) via the recovery menu