SharePoint Online

Deleting a SharePoint Online Site Collection with PowerShell

A basic one, but today I was asked a question how can I remove a SharePoint Online site collection programmatically – the answer being the ever so powerful PowerShell.

Connect to your SharePoint Online tenant with the SharePoint Online Management Shell (follow the link below to connect to SPO)

So now you’re connected to your tenant and you now want to remove the Site Collection

So first of all let’s run a Get-SPOSite | select URL this will list all SharePoint Online Site Collections

Now we have all the site collections choose your site collection, in this case I want to remove the site collection
site collection


Once that’s completed the Site Collection will be removed and be put in the Site Collection Recycle Bin for 90 days


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 )

Google+ photo

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

Twitter picture

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

Facebook photo

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


Connecting to %s