Remove a domain from Office 365

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

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.

Important: We’re rolling out changes to the Office 365 admin center every month to a selection of users. Check out Which version of the admin center do you see? to see what version of the admin center you have.

Which version of the admin center do you see?

If your admin center looks like the screenshot below, follow the steps under Remove a domain using Office 365 setup.

Illustration of the Office 365 Admin Center. Find out more about the Office 365 admin center

If your admin center looks like the screenshot below, follow the steps under Remove a domain using Office 365 setup in the Admin Center Preview.

Illustration of the Office 365 Preview Admin Center. Find out more about the Office 365 Preview admin center

Tip: We're still working on the admin center preview. You can switch back to the classic admin center if a setting or task you need is not yet available in the preview.

Remove a domain from Office 365 using Office 365 setup

  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.

Before you start, make sure your domain is ready to be removed

Before you remove a domain from Office 365, you have to 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 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

Remove a domain from Office 365 in the Admin Center Preview

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

  2. Go to the Domains page.

  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.

Before you start, make sure your domain is ready to be removed

Before you remove a domain from Office 365, you have to 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

Still can’t remove your custom domain?

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.

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!

Office 365 domains that can’t be removed

There are a few Office 365 domains that you can’t remove 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.

Still need help?

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

Was this information helpful?

How can we improve it?

How can we improve it?

To protect your privacy, please do not include contact information in your feedback. Review our privacy policy.

Thank you for your feedback!