Delete a site - SharePoint in Microsoft 365 (2024)

  • Article

When you, as a SharePoint Administrator and above in Microsoft 365, delete a site (previously called a "site collection"), it's retained as a deleted site for 93 days. Deleting a site deletes everything within it, including:

  • Document libraries and files.

  • Lists and list data.

  • Site settings and history.

  • Any subsites and their contents.

You should notify the site admins and any subsite owners before you delete a site so they can move their data to another location, and also tell users when the sites will be deleted.

Warning

We do not recommend deleting the root site for your organization. If you do, all your SharePoint sites will be inaccessible until you restore the site or create a new root site. Instead of deleting the root site, we recommend replacing it. Learn more about the root site and how to replace it

Note

Deleted sites in the Recycle Bin do not count toward the organization’s total storage usage. It will take up to 48 hours for the storage usage to update.

By using the SharePoint admin center, you can delete both classic and modern sites. As a a SharePoint Administrator and above in Microsoft 365, you can now delete sites that belong to Microsoft 365 groups. Deleting these sites will delete the group and all its resources, including the Outlook mailbox and calendar, and any Teams channels.

  1. Go to Active sites in the SharePoint admin center, and sign in with an account that has admin permissions for your organization.

    Note

    If you have Office 365 operated by 21Vianet (China), sign in to the Microsoft 365 admin center, then browse to the SharePoint admin center and open the Active sites page.

  2. In the left column, select a site.

  3. Select Delete, and to confirm, select Delete.

    Delete a site - SharePoint in Microsoft 365 (1)

Note

To delete a hub site, you first need to unregister it as a hub site.

Deleted Microsoft 365 groups are retained for only 30 days.

For info about deleting a site by using PowerShell, see Remove-SPOSite.

Permanently delete a site

To reuse a URL from a deleted site (recreate a site), you need to permanently delete the site. After the site is permanently deleted, it might take up to 24 hours for the URL to become available. On the Deleted sites page of the new SharePoint admin center, you can permanently delete all sites except those that belong to Microsoft 365 groups.

  1. Go to Deleted sites in the SharePoint admin center, and sign in with an account that has admin permissions for your organization.

    Note

    If you have Office 365 operated by 21Vianet (China), sign in to the Microsoft 365 admin center, then browse to the SharePoint admin center and open the Deleted sites page.

  2. In the left column, select a site.

  3. Select Delete, and to confirm, select Delete.

To permanently delete sites (including Microsoft 365 group-connected team sites) by using PowerShell, follow these steps:

  1. Download the latest SharePoint Online Management Shell.

    Note

    If you installed a previous version of the SharePoint Online Management Shell, go to Add or remove programs and uninstall "SharePoint Online Management Shell."

  2. Connect to SharePoint as a Global Administrator or SharePoint Administrator in Microsoft 365. To learn how, see Getting started with SharePoint Online Management Shell.

  3. Run the following command:

    Remove-SPODeletedSite -Identity https://contoso.sharepoint.com/sites/sitetoremove

(Where https://contoso.sharepoint.com/sites/sitetoremove is the URL of the site you want to permanently delete). For more info about using this command, see Remove-SPODeletedSite.

Summary of options

Site typeHow to deleteHow to permanently delete
Root siteNot recommended. Replace the root site with a different site. When the site is no longer a root site, its URL will be /sites/archive-datetime, and you can delete it from the Active sites page of the new SharePoint admin center or by using PowerShellFrom the Deleted sites page of the new SharePoint admin center or by using PowerShell
Communication sitesDelete them from the Active sites page of the new SharePoint admin center or by using PowerShellFrom the Deleted sites page of the new SharePoint admin center or by using PowerShell
Microsoft 365 group-connected team sitesDelete Microsoft 365 groups and all their resources from the Microsoft 365 admin center, the Active sites page of the new SharePoint admin center, or by using PowerShellFrom PowerShell only
Hub sites (those designated with "(Hub site)" in the Hub column)Unregister them as hub sites from the Active sites page of the new SharePoint admin center, or by using PowerShell, and then delete them based on their site typeBased on their site type
Classic sitesDelete them from the Active sites page of the new SharePoint admin center or by using PowerShellFrom the Deleted sites page of the new SharePoint admin center or by using PowerShell

Note

Sites associated with a hub can be deleted like any other site based on their template.

See also

User instructions for deleting sites and subsites

Delete a site - SharePoint in Microsoft 365 (2024)

FAQs

Delete a site - SharePoint in Microsoft 365? ›

You can use the Restore-SPODeletedSite cmdlet to restore a site collection from the Recycle Bin. To delete a site collection permanently, first move the site collection to the Recycle Bin by using the Remove-SPOSite cmdlet and then delete it from the Recycle Bin by using the Remove-SPODeletedSite cmdlet.

How do I permanently Delete a SharePoint site in Office 365 Powershell? ›

You can use the Restore-SPODeletedSite cmdlet to restore a site collection from the Recycle Bin. To delete a site collection permanently, first move the site collection to the Recycle Bin by using the Remove-SPOSite cmdlet and then delete it from the Recycle Bin by using the Remove-SPODeletedSite cmdlet.

How do I permanently Delete a site? ›

Delete a site
  1. On a computer, open a site in classic Google Sites.
  2. Click Settings. Manage Site.
  3. Click General. Delete this site.
  4. To confirm that you want to delete the site, click Delete.

How do I remove a site from SharePoint hub? ›

Select the site, select Hub on the command bar, and then select Unregister as hub site. Select OK.

How do I leave the SharePoint site? ›

How To Leave A Sharepoint Group?
  1. Go to the SharePoint site and click Settings.
  2. Click Site Permissions under Users and Permissions.
  3. Click the group name for the group you would like to leave.
  4. Click the Actions dropdown menu.
  5. Select Leave Group.
  6. Click OK in the dialog box that appears to confirm your choice.

How do I delete a site in SharePoint 365? ›

Delete a communication site or team site
  1. Navigate to the team site or communication site you want to delete.
  2. Select Settings. at the top of the site and then click Site information. ...
  3. At the bottom of the Site Information panel, select Delete site.
  4. Check the confirmation box, and then select Delete.

How do I permanently delete a SharePoint file? ›

Delete a file, folder, or link in SharePoint
  1. In SharePoint, open the document library and select the item you want to delete. (Avoid selecting the file name itself, because that would open the file.) ...
  2. Select Delete. on the toolbar above the list.
  3. Select Delete in the message box to confirm your action.

Can you Delete a SharePoint site without deleting the group? ›

Permanently delete a site

On the Deleted sites page of the new SharePoint admin center, you can permanently delete all sites except those that belong to Microsoft 365 groups. Go to Deleted sites in the SharePoint admin center, and sign in with an account that has admin permissions for your organization.

How do I disable a SharePoint site? ›

A: To disable SharePoint, go to the SharePoint admin center, navigate to the site collection, click on “Settings,” and choose “Deactivate.” Confirm the deactivation to disable SharePoint.

How do I Delete a SharePoint library? ›

Delete a library in SharePoint

In the Quick Launch bar on the left side of the screen, navigate to the library that you want to delete. , then select Library settings. In the Settings page, in the middle column under Permissions and Management, select Delete this document library.

How do I Delete a synced SharePoint site? ›

Stop syncing SharePoint folders
  1. Right click the OneDrive for work or school icon. ...
  2. Select the folder you want to stop syncing, and then select Stop syncing.
  3. Click Yes to agree to permanently stop syncing the folder, and then click OK.

What is the difference between SharePoint hub and SharePoint site? ›

A hub is used organize sites with a shared theming, navigation, search and news roll ups. A home site serves as the top level portal with unique functionality like special SP mobile treatment, organizational news, tenant wide search, integration with SP start page, etc.

How do I remove a SharePoint site from access? ›

Remove user permissions in SharePoint

Go to the Permissions page for the list, library, or survey using the steps in the previous section. In the Name list, select the checkbox next to the name of the user or group that you want to remove permissions from. Select Remove User Permissions.

How do I unpublish a SharePoint site? ›

If you no longer want your page to be viewed by others, you can unpublish it:
  1. Go to the Pages library for the site.
  2. Select the page you want to unpublish.
  3. Click the ellipse (...), and then click More.
  4. Click Unpublish.

How do I Delete a site activity in SharePoint? ›

In the Process Builder, go to the Activity Library, and open the SharePoint. tab. On the SharePoint. tab, drag the Delete SharePoint List.

How do I uninstall SharePoint? ›

1. Uninstall SharePoint from Control Panel
  1. Navigate to "Control Panel" > "Programs" > "Programs and Features".
  2. Locate "Microsoft SharePoint" in the list of installed programs.
  3. Right-click on "Microsoft SharePoint" and select "Uninstall".
  4. Follow the onscreen prompts to uninstall SharePoint.
Jul 11, 2024

How do I delete a SharePoint site folder in PowerShell? ›

Delete SharePoint Online Folder using PnP PowerShell

This can be done by running the following cmdlet: Connect-PnPOnline. Once connected, you can delete the folder by running the Remove-PnPFolder command. You will need to replace “Name” with the actual name of the folder you want to delete.

How to restore permanently deleted SharePoint site using PowerShell? ›

To restore a deleted SharePoint Online site using PowerShell, run the following cmdlet.
  1. Restore-SPODeletedSite -Identity <SPOSiteURL>
  2. Import-Csv <FileLocation> | foreach {Restore-SPODeletedSite -Identity $_. ...
  3. Get-SPODeletedSite | foreach {Restore-SPODeletedSite -Identity $_. ...
  4. Remove-SPODeletedSite -Identity <SPOSiteURL>
Jun 20, 2023

Does deleting a 365 group delete the SharePoint site? ›

When you delete a Microsoft 365 group, all group resources, including SharePoint site, mailbox conversations, Teams, notebook, and Planner tasks also get deleted. So, to delete a SharePoint group connected site, you must need to delete the Microsoft 365 group first.

How do I delete a SharePoint online list in PowerShell? ›

Deleting a list or library can also be done using the PnP PowerShell. Make sure the PnP PowerShell module is installed on your computer, and connect to your SharePoint Online site. Once you're connected, use the Remove-PnPList cmdlet to delete the desired list or library.

Top Articles
Latest Posts
Article information

Author: Geoffrey Lueilwitz

Last Updated:

Views: 5705

Rating: 5 / 5 (80 voted)

Reviews: 95% of readers found this page helpful

Author information

Name: Geoffrey Lueilwitz

Birthday: 1997-03-23

Address: 74183 Thomas Course, Port Micheal, OK 55446-1529

Phone: +13408645881558

Job: Global Representative

Hobby: Sailing, Vehicle restoration, Rowing, Ghost hunting, Scrapbooking, Rugby, Board sports

Introduction: My name is Geoffrey Lueilwitz, I am a zealous, encouraging, sparkling, enchanting, graceful, faithful, nice person who loves writing and wants to share my knowledge and understanding with you.