Before starting the process, you need to ensure that your source tenancy domain is removed because, in two different tenancies, you cannot use one domain at the same time.
In addition, we will also talk about the conventional method, which can be a lengthy process as Microsoft does not offer any functionality for the migration.
Therefore, experts consider specialized software for smoother data migration and tenant transfers to overcome these complications.
An Overview of How to Remove Domain From Office 365
A domain name acts as a unique marker in an email address, identified by the ‘@’ symbol. In web addresses, it prominently includes the ‘www’ prefix. Typically, domain names follow the pattern of an organization or educational institution, appearing as ‘companyname.com’ or ‘universityname.edu.’
Importantly, every Office 365 user is connected to at least one domain associated with their accounts.
At times, Office 365 users who have multiple domains in a single account may need to remove specific domains when they consolidate, alter, or cancel their subscriptions.
How to Remove Domain From Office 365 Using Traditional Method
Removing the domain is not immediate; it involves multiple steps for the complete elimination of the account. So, here are the steps for the migration process:
Step 1. Transfer users to a different domain
Initially, disassociate the user from the domain by modifying their domain. Follow these steps:
- Access the Office 365 Admin Center.
- Navigate to Active Users under the Users category.
- Select the user account for which you intend to modify the domain. Click on the ‘More’ option (represented by ‘…’) and opt for ‘Manage username and email’.
- Click on the Edit symbol to update the domain name.
- Utilize the drop-down menu to pick the fresh domain address for the account. Then, click on ‘Done.
- On the ‘Change Domains’ page, select an alternative domain.
Step 2. Relocate the groups to a different domain
- Within the Office 365 Admin Center, navigate to Groups and then the Groups page.
- Select the desired group and click on ‘Edit Email Address.’
- Click the Edit icon located next to the Primary email address.
- From the drop-down menu, opt for a different domain address, and then click ‘Done’.
Step 3. Eliminate the former domain
- Access the Office 365 Admin Center, go to Settings, then select the Domains page.
- Select the domain, click the option associated with it, and then choose “Remove domain”.
- Click ‘Remove.
- Adhere to the provided instructions and, lastly, click ‘Close’.
How to Remove Domain From Office 365 Using Powershell
In many situations, organizations need to remove multiple users from the domains, then in this situation, you can use Exchange Management Shell cmdlets.
Requirements:
- PowerShell and Microsoft Sign-in Assistant
- Administrative privileges for the relevant Office 365 tenancy
- Office 365 Directory Synchronization set to ‘False’.
Here are the quick steps to follow:
- Initially, launch the Exchange Management Shell with Administrator privileges. Subsequently, install the Exchange Online Module within the management shell.
Install-Module MSOnline
You will be prompted to confirm your provided command. Click ‘Yes’
- Import the Exchange Online module.
Import-Module MSOnline
You’ll be prompted to import your Exchange account credentials before commencing the domain removal. Enter the required credentials.
- Execute the following command:
Get-MSOLUser | Where-Object { $_.UserPrincipalName –like “*shaundomain.com”}
This command will generate a list of all users linked to the domain name shaundomain.com.
- Execute the command:
Get-MSOLUser | Where-Object { $_.UserPrincipalName –like “*shaundomain.com”} | Remove-Msoluser
This command will initially list all users and subsequently remove them individually. You will be prompted to confirm ‘Y’ for each user.
Once all users are removed from the domain
- Then, navigate to the Office 365 Admin Center
- After that, locate the domain in the Domains category
- Lastly, Select it, and choose the ‘Remove’ option.
Drawbacks of the Conventional Method
As we saw above the two different methods in the context of how to remove the domain from Office 365. Furthermore, if we talk about the first manual method, then it can be both a complex and time-consuming task even for a technical user.
Then we learn to perform this task using Powershell can be an easy task but only for those users who are familiar with it.
Wrapping Up
When an administrator needs to find a solution for how to remove the domain from Office 365, then they are not able to find a reliable solution. So, in this detailed article, we found all the reliable solutions for the query.
In addition, we discussed two different conventional methods for the procedure, with their efficient steps. However, traditional methods have some limitations, so to bypass these complexities, we covered specialized software to make the transition smooth.
Frequently Asked Questions
Q. What is a Domain in Office 365 and why do I need to delete it?
A domain is the unique identifier of your email address and website. In some cases, you may need to delete a domain if you’re changing your organization’s name or canceling a subscription.
Q. Is there a risk associated with getting rid of a domain in Office 365?
Most of the time, there’s no risk as long as it’s done correctly. However, it’s important to follow the steps correctly to prevent any issues with your organization’s email and services.
Q. What is the average time it takes to delete a domain in Office 365?
Depending on how you do it and how many users and groups you need to migrate, the manual approach may take longer than using Powershell.
Q. What happens to the data associated with the removed domain?
The information stored on the domain you’ve removed remains, but you’ll want to make sure all users and groups have been migrated to the new domain before you delete it to prevent data loss.