SharePoint Online: How to delete a Site Collection

Do you need yo delete a SPO Site collection?

You need to delete it, and then remove it from recycle bin. The next few lines will explain from Powershell command:

#This cmdlet prompts you for credentials. Type your Office 365 administration account credentials
Connect-MsolService –Credential $cred
#connect to your O365 tenant
#Get a list of your deleted sites in the site collection recycle bin with
get-spodeletedsite | where {$_.url -eq ""} | Remove-SPODeletedSite
#deletes the SC

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s