To delete a domain, you must first remove all existing accounts.
Go to Configure>Domains and select the domain to be deleted.
In the gear icon, click Delete.
Click Yes.