Deleting Site Collection In SharePoint Online

We can delete the site in two ways, where one is using SharePoint Online tenant and the other is using PowerShell command.

Option 1

Please open SharePoint admin centre-> Check the box for the site collection, which you wish to delete-> Click Delete in the ribbon.

Once we delete it from an admin centre, it goes to Recycle Bin, as mentioned in the screenshot shown above, which we get, while deleting the site collection and remains there for 30 days.

Note

If you wish to create a new site collection with the same address, you need to delete it permanently. The same can be done only by using PowerShell command, which we would see soon.

Option 2

The other way to delete the site collection is to use simple PowerShell commands. Please open SharePoint Online Management Shell as an administrator, as shown below.


Now, please use connect-sposervice. It would prompt for the user name and the password. Kindly provide the account, which has an access to SharePoint admin centre and the site.


Kindly use the command given below to delete the site collection post. The deleted site collection would remain in tenant recycle bin for 30 days, if not deleted.

Remove-SPOSite -Identity https://htotcl.sharepoint.com/sites/test

Ref - https://technet.microsoft.com/en-us/library/fp161377.aspx


If we wish to delete it from admin centre recycle bin as well, PowerShell command given below should be used.

Remove-SPODeletedSite –Identity https://htotcl.sharepoint.com/sites/test

Ref - https://technet.microsoft.com/en-us/library/fp161368.aspx


Thank you for reading!!