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

Use the new admin center to move users

The new admin center is available to all Microsoft 365 admins. You can opt in by selecting the Try the new admin center toggle located at the top of the Home page. For more information, see About the new Microsoft 365 admin center.

  1. Go to the admin center.

  2. Select Users > Active users.

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

  4. Select More options (), at the top of the page, and then choose Edit domains.

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

Use the old admin center to move users

  1. Go to the admin center.
  1. Go to the admin center.
  1. Go to the admin center.
  1. Select Users > Active users.

  2. Select the boxes next to the names of all the users you want to move.

  3. At the top of the page, choose More > Edit domains.

  4. In the Edit domains pane, select a different domain.

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.

Use the new admin center to move yourself to another domain

The new admin center is available to all Microsoft 365 admins. You can opt in by selecting the Try the new admin center toggle located at the top of the Home page. For more information, see About the new Microsoft 365 admin center.

  1. Go to Users > Active Users, and select your account from the list.

  2. On the Account tab, select Manage username, and then choose a different domain.

  3. At the top, select your account name, then select Sign Out.

  4. Sign in with the new domain and your same password.

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.

Use the old admin center to move yourself to another domain

  1. Go to Users > Active Users, and select your name in the list.

  2. In the Username / Email section, select Edit, and then choose a different domain.

  3. Select Set as primary > Save > Close.

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

  5. Sign in with the new domain and your same password.

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

Use the new admin center to move groups

The new admin center is available to all Microsoft 365 admins. You can opt in by selecting the Try the new admin center toggle located at the top of the Home page. For more information, see About the new Microsoft 365 admin center.

  1. In the admin center, go to the Groups > Groups page.

  2. Select the group name, and then on the General tab under Email address, Primary, select Edit.

  3. Use the drop-down list to choose another domain.

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

Use the old admin center to move groups

  1. In the admin center, go to the Groups > Groups page.
  1. In the admin center, go to the Groups > Groups page.
  1. In the admin center, go to the Groups > Groups page.
  1. Select the group name, and then select Edit next to Name.

  2. Use the drop-down list to choose another domain.

  3. Select 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. In the admin center, go to the Setup > Domains page.
  1. In the admin center, go to the Setup > Domains page.
  1. In the admin center, go to the Setup > Domains page.
  1. On the Domains page, select the domain that you want to remove.

  2. In the right pane, select Remove.

  3. Follow any additional prompts, and then select Close.

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

It can take 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!