Remove a domain from Office 365

We've updated this article! Send an email and let us know what you think.
Email: Office 365 Admin Content Feedback

Telephone

Want some help?                                   

Call support.

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

Before you start, remove anything that is still using the domain name

What to check

How to remove the custom domain name

Settings for all users

  1. Change the email address for each user to use a domain that isn't the one you're removing. One option is to change the domain back to the initial yourcompanyname.onmicrosoft.com domain.

Or, if this was a test account, you can remove all the users.

Distribution groups

For plans that use Office 365 Small Business:

  • Go to Admin > Add users, reset passwords, and more > Groups. For each group, choose Edit Edit , and select either a different custom domain name or the yourcompanyname.onmicrosoft.com address.

For all other plans:

  1. Go to Admin > Exchange > Recipients > Groups.

  2. For each group that uses the custom domain in the email address, choose Edit Edit , and change the SMTP address and any custom address types to use either a different custom domain name or the yourcompanyname.onmicrosoft.com address. For more information, see Manage Distribution Groups.

Your public website hosted on Office 365

For plans that use Office 365 Small Business:

  • In Office 365, select Admin. Or, select the app launcher Office 365 app launcher icon , and then select Admin.

    Office 365 navigation options
  • Choose Manage your public website > Change Address, and select either a different custom domain name or the yourcompanyname.sharepoint.com address.

For all other plans, if you have set up a SharePoint Online Public Website:

  1. Go to the Office 365 admin center.

  2. Choose SharePoint, and select the checkbox next to your public website.

  3. If you want to keep your public website, choose Website domains, and in the New URL box, select either a different custom domain name or the yourcompanyname.sharepoint.com address. Or, if you want to delete the contents of the public website, choose Delete.

Custom DNS records for the domain

  1. If Office 365 manages your DNS records, and if you have added any custom DNS records to Office 365, remove them.

    Go to the Domains page.

    Select the domain you're removing, and choose Manage DNS.

    Note:  The records that Office 365 adds for you, for example, when Office 365 sets up the DNS records for your domain, will be automatically deleted when you remove the domain.

  2. If you manage the DNS records for your domain at your DNS host for the domain, delete any records at your DNS host that you created that point to Office 365 services. If you need help finding the DNS records at your DNS host, see the links to step-by-step instructions for creating DNS records.

Tip:  If you have any subdomains set up for this custom domain name, be sure to also remove them.

The default domain

  1. Go to the Domains page.

  2. On the Domains page, select a domain that isn’t the one you want to remove.

  3. Choose Set as default.

    Select a domain, and choose Set as default

Remove a domain using the Office 365 admin center

To remove a domain from Office 365, first make sure you remove anything still using the domain. Then follow these steps.

  1. Sign in to Office 365 with your work or school account.

  2. Go to the Domains page.

    Go to the Domains page in the O365 admin center
  3. On the Domains page, select the domain, and then choose Remove.

    Select a domain, and choose Remove

  4. On the Remove domain page, choose Remove or follow the guidance in any other prompts that appear.

If you're still using the old "classic" admin center, follow these steps.

What to check

How to remove the custom domain name

Settings for all users

  1. Change the email address for each user to use a domain that isn't the one you're removing. One option is to change the domain back to the initial yourcompanyname.onmicrosoft.com domain.

Or, if this was a test account, you can remove all the users.

Distribution groups

For plans that use Office 365 Small Business:

  • Go to Admin > Add users, reset passwords, and more > Groups. For each group, choose Edit Edit , and select either a different custom domain name or the yourcompanyname.onmicrosoft.com address.

For all other plans:

  1. Go to Admin > Exchange > Recipients > Groups.

  2. For each group that uses the custom domain in the email address, choose Edit Edit , and change the SMTP address and any custom address types to use either a different custom domain name or the yourcompanyname.onmicrosoft.com address. For more information, see Manage Distribution Groups.

Your public website hosted on Office 365

For plans that use Office 365 Small Business:

  • In Office 365, select Admin. Or, select the app launcher Office 365 app launcher icon , and then select Admin.

    Office 365 navigation options
  • Choose Manage your public website > Change Address, and select either a different custom domain name or the yourcompanyname.sharepoint.com address.

For all other plans, if you have set up a SharePoint Online Public Website:

  1. Go to the Office 365 admin center.

  2. Choose SharePoint, and select the checkbox next to your public website.

  3. If you want to keep your public website, choose Website domains, and in the New URL box, select either a different custom domain name or the yourcompanyname.sharepoint.com address. Or, if you want to delete the contents of the public website, choose Delete.

Custom DNS records for the domain

  1. If Office 365 manages your DNS records, and if you have added any custom DNS records to Office 365, remove them.

    Go to the Domains page.

    Select the domain you're removing, and choose Manage DNS.

    Note:  The records that Office 365 adds for you, for example, when Office 365 sets up the DNS records for your domain, will be automatically deleted when you remove the domain.

  2. If you manage the DNS records for your domain at your DNS host for the domain, delete any records at your DNS host that you created that point to Office 365 services. If you need help finding the DNS records at your DNS host, see the links to step-by-step instructions for creating DNS records.

Tip:  If you have any subdomains set up for this custom domain name, be sure to also remove them.

The default domain

  1. Go to the Domains page.

  2. On the Manage domains page, select a domain that isn’t the one you want to remove.

  3. Choose Set as default.

    On the Manage domains page, choose Set as default

  1. Sign in to Office 365 with your work or school account.

  2. Go to the Domains page.

  3. On the Manage domains page, select the domain, and then choose Remove domain.

    On the Manage domains page, choose Remove domain

  4. On the Remove domain page, choose Yes or follow the guidance in any other prompts that appear.

If your domain name can’t be removed because it's blocked by other areas of your account still using the domain name, you’ll be prompted to take different actions that might clear up the problems.

Office 365 domains that can’t be removed from your domains list.

  • You can’t remove the original contoso.onmicrosoft.com domain name that was provided for your account when you signed up.

  • If you've set up directory synchronization, then a domain was automatically added to your account that looks similar to this: contoso.mail.onmicrosoft.com. This domain name can’t be removed.

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

Get help from the Office 365 community forums Admins: Sign in and create a service request Admins: Call Support

See Also

Change your plan or subscription

Cancel your subscription

Was this information helpful?

Great! Any other feedback?

How can we improve it?

Thank you for your feedback!

×