Unable to delete a custom domain name

John Flynn 0 Reputation points
2023-03-28T13:31:05.1+00:00

I am attempting to delete a custom domain name from a test tenancy for a DNS name that I own. There is a mail enabled security group which was created using a trial license which has now expired. I am unable to update the group mail name suffix as the license has expired. The Azure console is refusing to allow me to delete the domain because of the mail-enabled security group having a reference to it.

How do I fix this when I cannot get support from Microsoft to delete the custom domain?

Thanks.

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,682 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. James Hamil 22,086 Reputation points Microsoft Employee
    2023-03-29T00:05:38.74+00:00

    Hi @John Flynn , You can use the ForceDelete option to delete the custom domain. However, the ForceDelete operation won't succeed if either of the following is true:

    • You purchased a domain via Microsoft 365 domain subscription services.
    • You are a partner administering on behalf of another customer organization.

    To use the ForceDelete option, you must ensure that there are fewer than 1000 references to the domain name, and any references where Exchange is the provisioning service must be updated or removed in the Exchange Admin Center. This includes Exchange Mail-Enabled Security Groups and distributed lists.

    If you are unable to delete the domain using the ForceDelete option, you can try to remove the mail-enabled security group manually in the Exchange Admin Center. If you are unable to remove the group, you can try to update the group mail name suffix to a different domain name that you own.

    Please let me know if you have any questions and I can help you further.

    If this answer helped you please mark it as "Verified" so other users can reference it.

    Thank you

    James