Office 365 – Unable to remove domain

Unable to remove domain

 

Error produced when trying to remove domain from Office 365 – It may take 10 minutes more to remove this domain

 

This ultimately fails after more than 10 minutes.

 

We have seen this error, and seems to be linked to a failed attempt to migrate to 365

 

***Steps at your own risk***

 

To fix this:

 

1. Login to Office 365 portal and create a new user and give Global Administrator permissions and assign the Username suffix as domain.onmicrosoft.com

 

2. Log out and login with the newly created account and delete the other accounts in Office 365

 

3. Then, Go to windows azure powershell

 

3. Login to windows azure powershell with the new account and run the following commands

 

connect-msolservice(enter the credentials for new user)

 

Get-MsolUser -ReturnDeletedUsers -All | Remove-MsolUser -RemoveFromRecycleBin -Force

 

This should then allow you to remove the domain.

 

We are Microsoft Partners and can offer excellent rates on Office 365 Subscriptions. Get in touch