0

I start migrating our sharepoint on-premisies sharepoint site to sharepoint online, but the migration broke and i am half way. so can anyone advice if i can delete or reset the root site collection, so i can start a new migration? i tried to delete the site collection from the classic admin center, but the delete icon is disabled. as follow:-

2 Answers 2

0

Create a Communication site in your tenant, the URL can be anything. Then using the SharePoint Online PowerShell module, run Invoke-SPOSiteSwap. You can then delete the Archived site (the former root site).

4
  • @Trevore Seward i want the root to be classic team site not communication
    – John John
    Commented Mar 13, 2020 at 18:15
  • Sorry looks like you can use a classic Team site, too (STS#0).
    – user6024
    Commented Mar 13, 2020 at 18:25
  • but if i use the swap then the site collection will not be on the root url? is this correct?
    – John John
    Commented Mar 13, 2020 at 18:39
  • Not sure what you're asking, the documentation in PoSh is fairly clear in the example.
    – user6024
    Commented Mar 13, 2020 at 18:50
0

We cannot delete the root site collection or reset a site collection to its initial status.

As Trevor Seward suggests, you can replace the current root site collection with a new site (also known as Site Swap) and then do the migration again.

Please see the detailed steps as following:

  1. Create a classic team site in the Classic SharePoint admin center and give it any URL you want, for example, https://contoso.sharepoint.com/sites/classic.

  2. Replace root site in modern SharePoint admin center:

    a. Select the root site under the Active sites list and then click Replace site on the menu.

    b. Type https://contoso.sharepoint.com/sites/classic in the input box and then click Save.

    The original root site will be automatically moved to another URL.

You can also do the Site Swap using PowerShell. Check the documents in Trevor’s reply for the commands.

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.