How to replace the root site in SharePoint Online
Although the SharePoint Admin Center warns Admins of the consequences of deleting the root site, some Admins may still accidently delete the site or intentionally delete the site because they want to start over with the site. If the root site is deleted, users will experience the following problems immediately:
- Users will receive an error 404 when trying to access the root site because the root site (
https://contoso.sharepoint.com) is no longer available.
- All sites (
https://contoso.sharepoint.com/teams) that reside under the root site will be inaccessible for all users. Custom applications accessing sites or content may fail.
If you delete this site, all SharePoint sites in your organization will be inaccessible until you either restore the site or create a new site at <Root URL>.
If users are experiencing any of these issues, the fastest resolution is to restore the root site from Deleted Sites (Recycle Bin). For more info about how to restore a root site, see Restore a deleted site collection.
The root site URL for SharePoint Online is provisioned based off your input when setting up your Office 365 subscription. For example, if your organization name is Contoso, the root site for SharePoint Online will be
https://contoso.sharepoint.com. The remainder of this document will utilize Contoso as the organization name for all examples.
To address issues caused by deleting a root site, and to continue to allow the admins to manage what site is at the root, Microsoft has introduced the following conditions:
Admins are no longer able to delete the root site from the SharePoint Modern Admin Center or the Manage Site Collections page in the SharePoint Admin Center. After selecting the site from the SharePoint Modern Admin Active Sites, Admins will see the Delete button greyed out, and hovering over the Delete button will inform the admin that "The root site can't be deleted."
Additional changes will soon be introduced to further prevent the root site from being deleted. This will include turning off the capability from PowerShell, Classic Admin Center, and Site Information.
To allow admins to manage which site is at the root, Site Swap has been introduced. Site Swap will allow admins to replace the root site with either a modern communication site or a classic team site.
Site Swap is available as a PowerShell cmdlet only. For more info about using this cmdlet and what happens with the previous root site, see Invoke-SPOSiteSwap. Site Swap will be available in the Modern SharePoint Admin Center as a Replace button in future versions.
Still need help? Go to SharePoint Community.