Share via

Can't remove domain

Anonymous
2016-02-04T15:18:04+00:00

We created a domain in Office365 and validated it, this was a Premium Free trial, then we shifted to a simple Office365 without Exchange.  We would like to remove the domain, so we created a domain.onmicrosoft.com and moved the users to that domain. When we use the remove domain in Admin Center it just fails without any message.  In PowerShell: Remove-MsolDomain -DomainName domain.com shows this error: Remove-MsolDomain : Unable to remove this domain. Use Get-MsolUser –DomainName <domain name>  to retrieve a list of objects that are blocking removal.

Running Get-MsolUser -DomainName domain.com shows 6 users, the domain contains 14 users total, so 8 users appear OK.  Looking further it looks like the users that have a problem show CloudExchangeRecipientDisplayType of 1073741824 while the users that work that field is empty.  Everything else looks OK.

Any ideas how to remove the domain or troubleshoot this problem?

Thanks...

Microsoft 365 and Office | Subscription, account, billing | For business | Other

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Anonymous
2016-02-05T14:32:56+00:00

RESOLVED:  We ended up deleting the 6 user accounts and then added them back as new users.  We were then able to run the Remove-MsolDomain -domain domain.com without any errors.  Get-MsolDomain now only shows the new domain.

Was this answer helpful?

0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Anonymous
    2016-02-05T13:20:15+00:00

    Hi Jared,

    Thanks for the response.  When I go to admin > Users > active users > select a user > the only options I have are: Reset Password, Edit User Roles, Delete, Edit, Add to Group.  Below that are Assigned license and Office Installations.  If I Edit any of the users, under Details, it shows the User name @ with a dropdown of the old and new domains, the new one is selected.  No users show up at this level in the old domain.  Trying to use PowerShell I only see my OnPrem Exchange Users.  Do you have any other ideas.

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2016-02-05T06:12:44+00:00

    Hi Craig4316,

    From your description, I suggest you check and change the email addresses of the 6 users.

    Please follow these steps:

    Go to admin > Users > active users > select a user > Edit Exchange properties > email address, double click all the SIP/SMTP email addresses and change them into target domain email addresses.

    You can also use PowerShell to do that. For your reference:

    "Unable to remove this domain" error when you try to remove a domain from Office 365

    After you finish the steps above, wait a moment and try to remove the domain again.

    Regards,

    Jared

    Was this answer helpful?

    0 comments No comments