I am selling my iMac and I formatted every disk which also included startup disk and there is none. Now when I go to reinstall macOS, it shows the disk is locked. When I go to disk utility, it shows me no option of format e.g. Journal etc. It only has AFPS option.
What can I do to reinstall the OS?