Is it possible to remove extra '' domains from Azure AD

Timothy Dirks 21 Reputation points

I am trying to remove a few extra '' domains I added to my Azure AD for testing

Steps taken so far:

  1. Removed all dependancies on domain in Azure AD
  2. Attempted to remove domain under 'Custom domain names' section of the Azure AD on azure portal. Resulted in "Unable to delete domain name '****' from ****.com"
  3. Used used 'Remove-MsolDomain' command in powershell.
    Resulted in:

Remove-MsolDomain : Unknown error occurred.
At line:1 char:1

  • Remove-MsolDomain -DomainName "****" - ...
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  • CategoryInfo : OperationStopped: (:) [Remove-MsolDomain], MicrosoftOnlineException
  • FullyQualifiedErrorId : Microsoft.Online.Administration.Automation.DomainCapabilityUnsetException,Microsoft.Onli

Note: This is NOT the default '' domain that was created when tenant was created.

Azure Active Directory
Azure Active Directory
An Azure enterprise identity service that provides single sign-on and multi-factor authentication.
14,753 questions
Azure Active Directory Domain Services
0 comments No comments
{count} votes

5 answers

Sort by: Most helpful
  1. ShashiShailaj-MSFT 7,466 Reputation points Microsoft Employee

    @Timothy Dirks ,

    As I understand your query , you seem to be trying to remove extra *' domain names from your Azure AD tenant . You have also mentioned that you the domain you are trying to remove is not the same domain that was created when tenant was created. The domain name that is created while we create a new tenant has type initial added to it as shown below.


    The name is the initial name that is provided to a tenant whenever it is created. The namespace is Microsoft-owned service namespace for Azure AD service . Its not possible to have two verified domain names associated with a single azure AD tenant by design . If there were multiple domains in your Azure AD tenant; by design, only one would be verified domain that you would be able to use with users or groups while others would just be unverified domains which could be removed easily with the cmdlet Remove-AzureADdomain or Remove-MSolDomain.

    I tried to see if multiple domain could be added . Whenever I add a new domain like to my azure AD tenant, the system asks me to verify the same. In order to verify that I will require access to the DNS zone which no one has access to except Microsoft Cloud Services hence the domain would never become a verified domain in my case as you can see below.


    For testing, I tried removing the initial domain and got the following error.

    PS C:\> Remove-MsolDomain -DomainName  
    Remove-MsolDomain : You cannot remove the initial domain created for you in Office 365.  
    At line:1 char:1  
    + Remove-MsolDomain -DomainName  
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
        + CategoryInfo          : OperationStopped: (:) [Remove-MsolDomain], MicrosoftOnlineException  
        + FullyQualifiedErrorId : Microsoft.Online.Administration.Automation.InitialDomainDeletionException,Microsoft.Online.Administration.Automation.RemoveDomain  

    Then I tried removing other domains and I was successful without any issue as they were unverified domains.

    PS C:\> Get-MsolDomain  
    Name                            Status     Authentication  
    ----                            ------     --------------      Verified   Managed     Verified   Managed                           Verified   Managed                 Unverified Managed                  Unverified Managed         
    PS C:\> Remove-MsolDomain -DomainName  
    PS C:\> Get-MsolDomain  
    Name                            Status     Authentication  
    ----                            ------     --------------      Verified   Managed     Verified   Managed                           Verified   Managed                  Unverified Managed         

    In this case I added multiple domains and removed them using the PowerShell cmdlets Remove-MsolDomain and it worked without any issue. Ideally if you have multiple verified domains in your azure AD tenant , it can be some bug and we can help you further if you can provide more information on this. I hope the information provided clarifies how custom domains related to domains associated with a azure AD tenant . If the information is not helpful , please check if the domains you are trying to remove are verified or not. If they are verified , please let us know and we will continue to help you . Should the information in this thread help you , please do accept this post as answer which will help other members of the community and improve the relevancy of this thread.

    Thank you .


    • Please don't forget to click on 130616-image.png whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer. Here is how
    • Want a reminder to come back and check responses? Here is how to subscribe to a notification
    • If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators

  2. Dionis Vozian 1 Reputation point

    i'm facing the same issue.

    0 comments No comments

  3. Will Christopher 1 Reputation point

    I'm having the same issue. Has anyone figured it out, yet?

  4. Patrick-L 0 Reputation points

    Hi all,

    I'm facing the same issue.

    I created two sub-domains on my default "" address:User's image

    Even the sub-domains aren't set as "Primary", I'm not able to delete one of them:

    User's image

    "" is a custom domain with state: "Verified" but not the "Primary" domain:

    User's image

    Also deleting this Domain my Power-Shell with: Remove-AzureADDomain -Name was not possible.

    What am I doing wrong?

    Is this a Azure-Bug?

    How to proceed here?

    0 comments No comments

  5. MOD Administrator 998 0 Reputation points

    According to the Microsoft Learn article Add and replace your fallback domain in Microsoft 365 one cannot delete the extra domains once they are created (but I'm guessing if one contacts MS Support they can help);


    You are limited a total of five domains in your Microsoft 365 environment. Once they are added, they cannot be removed.

    0 comments No comments