There is no option to delete the onmicrosoft.com initial domain. You can delete the custom domains which were added to tenant. However, when you sign up for a tenant, there is a an initial domain which gets created and it is with onmicrosoft.com suffix. This domain cannot be deleted from Azure AD. If you have added multiple onmicrosoft.com domains, then those can be deleted and can set other onmicrosoft.com domain as initial domain.
- You can't remove your onmicrosoft.com domain. Microsoft 365 needs to keep it around because it's used behind the scenes for your subscription. But you don't have to use the domain yourself after you've added a custom domain. If you choose to create a new onmicrosoft.com domain, it cannot be removed. You are limited to five onmicrosoft.com domains in your Microsoft 365 environment, so make sure to check for spelling and to assess your need if you choose to create a new one.
- You can replace your onmicrosoft.com domain after sign-up. While you can’t rename or remove an existing onmicrosoft.com domain, you can create a new one and make it your default onmicrosoft.com domain (your “fallback domain”). For example, if the initial domain you chose was fourthcoffee.onmicrosoft.com, if needed you can create a new onmicrosoft.com domain called fourthcoffeecorp.onmicrosoft.com and set it to be your fallback domain.
You can also refer to below article to know more about onmicrosoft.com domains,
If you want all users to stop using onmicrosoft.com then then only option is to delete the entire tenant. Post deletion Microsoft waits 30 to 90 days before permanently deleting your data in case you need to access it or you change your mind. We don't charge you for keeping the data.
You can refer to below article to know more about deletion of tenant,
Let me know if you have any further questions on this.
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.