Office
Sign in

Remove a domain from Office 365

Contributors: Peter Baumgartner

Check the Domains FAQ if you don't find what you're looking for.

Are you removing your domain because you want to add it to a different Office 365 subscription plan? Or do you just want to cancel your subscription? You can change your plan or subscription or cancel your subscription.

Step 1: Move users to another domain

  1. Go to the Click here to go to the Office 365 admin center. .

    Go to the Office 365 admin center.

    Go to the Office 365 admin center.

  2. Choose Users > Active Users.

  3. Select the boxes next to the names of the users who you want to move.

  4. In the Bulk actions pane, choose Edit domains.

  5. In the Edit domains pane, choose a different domain.

  6. Choose Set as primary, then choose Save.

  7. You'll need to do this for yourself, too, if you're on the domain that you want to remove. When you edit the domain for your account, you'll have to log out and log back in using the new domain you chose to continue.

    For example, if you're logged in as dave@contoso.onmicrosoft.com:

    1. Go to Users > Active Users, select your account from the list, and then choose Edit in the Username row in the left pane.

    2. Choosea different domain: contoso.com

    3. Choose Set as primary, choose Save, and then Close.

    4. At the top, choose your account name, then choose Sign Out.

    5. Sign in with the new domain and your same password: dave@contoso.com

You can also use PowerShell to move users to another domain. See Set-MsolUserPrincipalName for more information. To set the default domain, use Set-MsolDomain.

Step 2: Move groups to another domain

  1. Go to the Click here to go to the Office 365 admin center. .

    Go to the Office 365 admin center.

    Go to the Office 365 admin center.

  2. Choose Groups > Groups.

  3. Select the box for any group or distribution listassociated with the domain that you want to remove.

  4. In the right pane, next to the group name, choose Edit.

  5. Under Group Id, use the drop-down to choose another domain.

  6. Choose Save, then Close. Repeat this process for any groups or distribution lists associated with the domain that you want to remove.

Step 3: Remove the old domain

  1. Go to the Click here to go to the Office 365 admin center. .

    Go to the Office 365 admin center.

    Go to the Office 365 admin center.

  2. Choose Setup > Domains.

  3. On the Domains page, choose the domain that you want to remove.

  4. In the right pane, choose Remove.

  5. Follow any additional prompts, and then choose Close.

How long does it take for a domain to be removed?

It can as little as 5 minutes for Office 365 to remove a domain if it's not referenced in a lot of places such as security groups, distribution lists, users, and Office 365 groups. If there are many references that use the domain it can take several hours (a day) for the domain to be removed.

If you have hundreds or thousands of users, use PowerShell to query for all users and then move them to another domain. Otherwise, it's possible for a handful of users to be missed in the UI, and then when you go to remove the domain, you won't be able to and you won't know why. See Set-MsolUserPrincipalName for more information. To set the default domain, use Set-MsolDomain.

Still need help?

Note: You can't remove the ".onmicrosoft.com" domain from your account.

Still not working? Your domain might need to be manually removed. Give us a call and we'll help you take care of it!

Expand your Office skills
Explore training
Get new features first
Join Office Insiders

Was this information helpful?

Thank you for your feedback!

Thank you for your feedback! It sounds like it might be helpful to connect you to one of our Office support agents.

×