@Richard Hauer Thank you for your post!
Error Message:
Unable to delete domain name '<Domain Name>` from '<Azure AD Tenant Name>'
Code:
Request_BadRequest
I understand that you're trying to delete a custom domain that you added a few days ago for experimental/lab purposes. However, when trying to delete the custom domain you're running into the above error message and error code.
Depending on the custom domain name you're trying to delete - if this is a onmicrosoft.com domain, unfortunately you won't be able to rename or remove this domain.
- Note: If the domain name you're trying to delete isn't an
onmicrosoft.comdomain, can you share a screenshot of the error message you're receiving, or the domain name you're trying to delete?
For more info - Why do I have an "onmicrosoft.com" domain?
If you want to have your email look like ******@contoso.com: buy the domain or just follow the steps in Add your users and domain to Microsoft 365 if you own it already.
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 might not be able to change your SharePoint domain name. Your SharePoint domain name is based on your onmicrosoft.com domain name. The ability to change the SharePoint domain name is available in public preview for organizations whose total SharePoint sites and OneDrive accounts number fewer than 1000.
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.
I hope this helps!
If you have any other questions, please let me know. Thank you for your time and patience throughout this issue.
Additional Links:
- Add and replace your onmicrosoft.com fallback domain in Microsoft 365
- Remove a domain - Still need help?
If the information helped address your question, please Accept the answer. This will help us and also improve searchability for others in the community who might be researching similar information.