Delete SharePoint Site + PowerShell

In this SharePoint tutorial, we will discuss how to delete a SharePoint site in Office 365 SharePoint Online. Also, we will see how to delete a site collection in SharePoint 2013, SharePoint 2016, or in SharePoint 2019.

I will also show you how to delete SharePoint subsite. Apart from this, we will see how to delete a SharePoint site using PowerShell.

Also, we will see how to delete SharePoint site permanently and using PowerShell.

What will get deleted when you Delete a SharePoint Site?

Now, we will see what will get deleted when you delete a SharePoint Online site or previously known as a site collection.

When you delete a SharePoint site, then everything will be get deleted like:

  • All the list and libraries with content (like list items or files)
  • Site settings and history
  • All subsites and the subsite contents

Note: You need to be a global or SharePoint admin in Office 365/Microsoft 365 to delete a SharePoint site.

Once you delete a SharePoint Online site, the site will be available for 93 days under the Deleted sites. Within 93 days, you can restore the SharePoint site.

Delete SharePoint Site (Office 365)

Now, let us see how to delete a SharePoint site from the SharePoint Online admin center.

Login to the SharePoint Online admin center. Then click on Active sites, which will show all the SharePoint Online sites.

Select the SharePoint site that you want to delete, and click on the Delete button from the command bar like below:

Delete SharePoint Site
Delete SharePoint Site

If the SharePoint site is connected to Office 365 group, then you will see a warning box, select the checkbox Delete the group and all its resources. Then click on the Delete button like below:

delete a sharepoint site

Now, the SharePoint site will get deleted and moved to the Deleted sites in SharePoint Online admin center.

Delete a SharePoint Team site or communication site

Now, I will show you how to delete a SharePoint team site or SharePoint communication site from the site itself.

Open the SharePoint Online team site or communication site, click on the Gear icon or settings icon, and then click on Site information.

Delete a sharepoint site or subsite

This will open the Site Information dialog box, where you can see a few information on the SharePoint site. Here click on the Delete site link like below:

Delete a SharePoint Team site

Then it will ask you to select the checkbox to Delete Office 365 group. Make sure to check the “Yes, delete this group and all its associated resources.

delete sharepoint group site

Click on the Delete button and the SharePoint Online team site will get deleted and moved to SharePoint site deleted sites list in the SharePoint Online admin center.

Delete SharePoint Online Classic Site

If you want to delete SharePoint classic team site, then we can delete it from the SharePoint site settings page.

Open the SharePoint site, click on the gear or settings icon, then click on Site settings.

Then in the SharePoint site settings page, under Site Actions click on Delete this site like below:

delete sharepoint team site

Then it will display the Delete This Site page that will display a warning message like below:

how to delete a sharepoint site
Delete SharePoint Site

Here, click on the Delete button and the SharePoint site will be deleted.

Delete SharePoint site (Classic Admin Center)

Now, let us see how to delete a SharePoint site from the classic SharePoint admin center.

Open the classic SharePoint admin center (from the below URL)

https://<YourTenantName>-admin.sharepoint.com/_layouts/15/online/SiteCollections.aspx

Let us see how to delete a SharePoint site collection in Office 365 SharePoint online.

From the classic site collection page, select the site (which we want to delete) from the SharePoint site collection list. In the Top of Site collection page, we can see the Delete option from the options bar. Click on Delete.

how to delete sharepoint site

Now it is asking for confirmation did you confirm want to delete the site from site collection list.

Note: When we delete the site it will store to recycle bin of SharePoint Online. It will stay 93 days in the recycle bin, within that time period we can restore the site collection in Office 365 SharePoint Online.

If the time period cross then it permanently deleted, you can not restore.

delete sharepoint subsite office 365
delete SharePoint subsite office 365

How to delete SharePoint subsite

Now, we will see how to delete a SharePoint subsite from the Site in SharePoint Online Office 365. We can follow the same process in SharePoint on-premise.

Open the particular SharePoint subsite which we want to delete.

Go to Site Settings -> Site Actions -> Delete this site.

delete sharepoint subsite office 365
delete sharepoint subsite office 365

In the Delete Settings page, it will ask for confirmation. Click on Delete.

delete sharepoint subsite office 365
delete sharepoint subsite office 365

Now one more dialogue box will come it is asking did you want to send this site to recycle bin or not. Click on OK.

delete sharepoint team site
delete SharePoint team site office 365

Now we can see the message that our site successfully deleted.

delete sharepoint subsite office 365
delete SharePoint subsite office 365

Delete SharePoint 2013 site collection

Now, let us see how to delete SharePoint on-premise site collection, like how to delete SharePoint 2013 site collection or steps to delete a site collection in SharePoint 2016 or SharePoint 2019 from the SharePoint central administration.

Let us see how to delete a site collection from SharePoint central administration.

Open SharePoint 2013/2016/2019 central administration, click on Application management. And then click on Delete a site collection, which is presented under Site Collections like below:

Delete SharePoint site collection

Then in the Delete Site Collection page, choose a particular site collection and then click on the Delete button like below:

Delete SharePoint site collection 2013
Delete SharePoint site collection 2013

Then it will display a confirmation message and once you click on the Delete button, the SharePoint site collection will get deleted.

Delete SharePoint Site using PowerShell

Now, we will see how to delete SharePoint site using PowerShell.

We can use Remove-SPSite PowerShell cmdlets to delete a SharePoint 2013 site using PowerShell.

Remove-SPSite -Identity "https://SharePointSiteCollectionURL"

Once you execute the command, it will delete the site collection and all its subsites.

Similarly, if you want to delete all SharePoint site collections under a SharePoint web application, you can run the below PowerShell cmdlets.

Get-SPWebApplication https://<YourWebApplicationURL> | Get-SPSite -Limit ALL | Remove-SPSite -Confirm:$false

Delete SharePoint Online Site using PowerShell

First, you have to install the SharePoint Online management shell and You should be a global or SharePoint administrator to run the below PowerShell command.

We can use the Remove-SPOSite PowerShell cmdlets if you want to remove a SharePoint Online site using PowerShell that is not connected to an Office 365 group.

Connect-SPOService -Url https://tsinfo-admin.sharepoint.com -credential bijay@tsinfo.onmicrosoft.com

Remove-SPOSite -Identity https://tsinfo.sharepoint.com/sites/Business -NoWait

If the SharePoint Online site is an Office 365 group connected site, then we need to use the Remove-SPOSiteGroup PowerShell cmdlet like below:

Connect-SPOService -Url https://tsinfo-admin.sharepoint.com -credential bijay@tsinfo.onmicrosoft.com

Remove-SPOSiteGroup -Identity https://tsinfo.sharepoint.com/sites/Business -Identity Business

This is how we can delete a SharePoint Online site using PowerShell or SharePoint Online management shell.

Delete SharePoint site permanently

Now, we will see how to delete SharePoint site permanently.

Open the SharePoint admin center, go to the Deleted sites.

There you can see all the deleted SharePoint sites.

Select a SharePoint site, that you want to delete permanently and then click on the Permanently delete button.

delete sharepoint site permanently
delete sharepoint site permanently

This is how we can delete a SharePoint site permanently.

Delete SharePoint site permanently using PowerShell

We can use Remove-SPODeletedSite cmdlets, If you want to delete SharePoint site permanently using PowerShell.

But make sure, you have installed the SharePoint Online management shell and You should be a global or SharePoint administrator to run the below PowerShell command.

Connect-SPOService -Url https://tsinfo-admin.sharepoint.com -credential bijay@tsinfo.onmicrosoft.com

Remove-SPODeletedSite -Identity https://tsinfo.sharepoint.com/sites/SPGuides

Once you run the above PowerShell cmdlets, then the SharePoint site will be deleted permanently.

You may like following SharePoint site tutorials:

In this tutorial, we learned how to delete a SharePoint site and the below things:

  • What will get deleted when you Delete a SharePoint Site?
  • Delete SharePoint Site (Office 365)
  • Delete a SharePoint Team site or communication site
  • Delete SharePoint Online Classic Site
  • Delete SharePoint site (Classic Admin Center)
  • How to delete SharePoint subsite
  • Delete SharePoint 2013 site collection (delete a site collection in SharePoint 2016/2019)
  • How to permanently delete SharePoint site
  • Delete SharePoint site permanently using PowerShell
>