How to Delete a SharePoint Site (2024)

New SharePoint sites are easily created in Microsoft 365, but sometimes a bit too easy. I often see a lot of unused SharePoint sites in SharePoint online. Users accidentally created two sites for the same project, or just wanted to test something out. So sometimes we will need to delete SharePoint sites to keep our environment cleaned up.

It’s important to check if SharePoint sites are not used anymore before we can delete them. And this can sometimes be a challenge because modern sites can look inactive, even though the Teams chat is actively used.

In this article

In this article, we are first going to take a look at how to delete a SharePoint site. And later on, we will take a look at how to find inactive sites.

What you need to know

Before we take a look at how to delete a SharePoint site, there are a few things you need to keep in mind. To delete a site you will need to be either a site owner or a SharePoint administrator. If it’s a communication site, then you will also need to have the site admin role.

These days we have the classic SharePoint sites (standalone sites) and modern sites. Modern sites are Microsoft 365 Groups that have a Teams channel, SharePoint site, OneNote, Planner, etc. Deleting the sites is for both practically the same, but keep in mind that with a modern site, also Teams, OneNote, Planner, etc is deleted.

Tip

You can configure alerts for when a SharePoint site or Team is deleted. I have seen enough cases where Site Owners deleted the Team and all the SharePoint data was lost as well.

SharePoint sites or Microsoft 365 Groups that are deleted are retained for short period. This allows you to restore all the content in case you accidentally deleted the wrong SharePoint site. The retention period is different for classic sites and modern sites:

  • Classic SharePoint site: 93 days
  • Modern SharePoint site: 30 days

At the end of the article, I will also explain how you can restore a SharePoint site or Microsoft 365 Group (Modern site).

Delete a SharePoint Sites

There are two locations where you can delete a SharePoint site, in the SharePoint Admin Center if you are a SharePoint administrator or in the site settings when you are Site Owner.

Deleting a Modern SharePoint Site

Most SharePoint sites these days are modern sites. When you are a site owner, you can delete the SharePoint site using the site settings:

  1. Open the SharePoint site
  2. Click on the gear icon (Settings)
  3. Choose Site Information
How to Delete a SharePoint Site (1)
  1. Click on Delete Site. (If you don’t see that option, then double-check that you are a site owner)
  2. Thick Yes, delete this group and all its associated resources
  3. Click on Delete
How to Delete a SharePoint Site (2)

Deleting a Classic Site

To delete a classic SharePoint site we need to follow almost the steps. Only the site settings look a bit different than with a modern site. Again, you will need to be a site owner to be able to delete the site.

  1. Open the SharePoint site
  2. Click on the gear icon (Settings)
  3. Choose Site Settings
How to Delete a SharePoint Site (3)
  1. Click on Delete this site (under Site Actions)
  2. You will get a warning that you are about to delete the site. Click Delete and then Ok
How to Delete a SharePoint Site (4)

Deleting a SharePoint site as Administrator

When you are a Global or SharePoint Administrator, then you can also delete the SharePoint sites from the SharePoint Admin Center. You can bulk delete multiple SharePoint sites or of course individual sites.

To delete a single SharePoint sites in the admin center:

  1. Open the SharePoint Admin Center
  2. Expand sites and choose Active Sites
  3. Click or select the site that you want to delete
  4. Click on Delete and again on Delete to confirm it
How to Delete a SharePoint Site (5)

You can also delete multiple sites from the SharePoint Admin Center:

  1. Select multiple sites that you want to delete
  2. Click on Bulk edit
  3. Choose Delete and confirm your action by clicking on Delete again.
How to Delete a SharePoint Site (6)

Delete SharePoint Site with PowerShell

We can of course also use PowerShell to delete a SharePoint site. Make sure that you have installed the SharePoint module before you continue. Sites that are deleted through PowerShell will also go to the recycle bin first, so you can always restore them when needed.

To delete a classic SharePoint site you can use the cmdlets below. You will need to confirm the delete action after the Remove-SPOSite cmdlet:

# Connect to SharePoint Online ServicesConnect-SPOService -Url https://contoso-admin.sharepoint.com# Remove the SharePoint SiteRemove-SPOSite -Identity https://contoso.sharepoint.com/sites/Lab11 -NoWait

To delete a Modern SharePoint site we will need to use the Exchange Online module in PowerShell. First, connect to Exchange Online and then delete the SharePoint site with the Remove-UnifiedGroup cmdlet:

# Connect to Exchange OnlineConnect-ExchangeOnline -UserPrincipalName admin@contoso.com# Delete the SharePoint siteRemove-UnifiedGroup -Identity "Lab 11"

How to Restore a SharePoint Site

What if you accidentally deleted the wrong SharePoint site or Microsoft 365 Group? As mentioned in the beginning, delete sites are kept for 30 up to 93 days, depending on the SharePoint site type. So, unless you empty the recycle bin, there is an option to restore the SharePoint site.

Tip

Make sure that you have a good backup solution for your Microsoft 365 environment. This way you can always restore the data, even after the 93 days limitation.

We can restore a classic or modern site in the same way in SharePoint Online:

Restore a Deleted SharePoint site

To restore a deleted SharePoint site you will need to open the SharePoint Admin Center. Here we can view the deleted sites list and restore the site:

  1. Open the SharePoint Admin Center
  2. Expand Sites and select Deleted Sites
  3. Select the site and click on Restore
  4. You will get a notification that all other resources also will be restored, click Restore to continue
How to Delete a SharePoint Site (7)

Finding Inactive SharePoint sites

Before you delete a SharePoint site it’s important to check if the site really isn’t used anymore. Now the challenge these days is that SharePoint sites might not have any file activity for the last 90 days, but the Teams channel is still actively used.

So when unsure we need to check for activity on at least two places, SharePoint and Teams. Let’s start with SharePoint. In the SharePoint Admin Center we can view the last activity on the site, the number of page visits, and files on a site. These three metrics give you a good indication if the site is used or not.

  1. Open the SharePoint Admin Center
  2. Expand Sites > Active sites
  3. Scroll a bit to the right to view the columns Last Activity, Page Visits, and Files

Tip

If you scroll all the way to the right, you can click on Customize Columns and reorder them
How to Delete a SharePoint Site (8)

If you click on the Last Activity column header, you can also filter the list on Last Activity. This will give you the option for example to view only the sites that never had activity. A good place to start when cleaning up.

How to Delete a SharePoint Site (9)

If you want to check the activity of a single SharePoint site, then just click on the SharePoint site and open the Activity tab. This will give you all the information you need about the site.

Teams is a bit harder to verify, but we can check the Teams usage report in the Teams Admin Center. If the group isn’t listed in the report then we know that it’s an inactive group.

  1. Open the Teams Admin Center
  2. Expand Analytics & Reports and click on Usage Reports
  3. Choose the Teams usage report and set the date range to last 90 days
  4. Click on Run Report
  5. Only active Teams are listed in the report
How to Delete a SharePoint Site (10)

PermanentlyDelete a SharePoint site

When you delete a SharePoint Site it will remain in the recycle bin for at least 30 days. Most of the time this isn’t an issue. But what if you accidentally created a normal SharePoint site, while you wanted to create a communication site? You have deleted the normal site, but as you might have noticed, you can’t reuse the site address.

To solve this, we will have to permanently delete the SharePoint site. Keep in mind, that you can’t restore them anymore unless you have a third-party backup solution.

  1. Open the SharePoint Admin Center
  2. Expand sites and click on Deleted sites
  3. Select the deleted site
  4. Click on Permanently delete
How to Delete a SharePoint Site (11)

This option is only not possible when it’s a modern SharePoint site. To permanently delete a modern SharePoint site we will need to use PowerShell. Make sure that you are connected to the SharePoint Online services and that you know the full URL to the SharePoint site:

# Connect to SharePoint Online ServicesConnect-SPOService -Url https://contoso-admin.sharepoint.com# List all deleted SharePoint SitesGet-SPODeletedSite# Permanently delete the SharePoint SiteRemove-SPODeletedSite -Identity https://lazydev.sharepoint.com/sites/Lab11
How to Delete a SharePoint Site (12)

Wrapping Up

When deleting a SharePoint site make sure that it isn’t used anymore. Of course, you can restore the site from the recycle bin, but it’s better to prevent it. Use the built-in reports or verify it with the site owner or one of its members.

Keep in mind that site owners can also delete SharePoint sites, so I like to configure alerts in Microsoft 365 to detect accidental deletion in time.

I hope you found this article useful, if you have any questions or tips, just drop a comment below.

How to Delete a SharePoint Site (2024)

FAQs

How do I Delete an entire SharePoint site? ›

Delete a site or subsite quicksteps
  1. SharePoint in Microsoft 365 team site — Settings > Site Information> Delete site — Check box to delete group, and then click Delete.
  2. SharePoint in Microsoft 365 or SharePoint Server 2019 communication site — Settings > Site Information> Delete site — Click Delete.

How do I remove a site from SharePoint search results? ›

In this article
  1. Go to More features in the SharePoint admin center, and sign in with an account that has admin permissions for your organization. Note. ...
  2. Under Search, select Open.
  3. On the search administration page, select Remove Search Results.
  4. Select Remove Now. The URLs are immediately removed from your search results.

How do I Delete SharePoint survey responses? ›

Delete all data from an existing survey
  1. Navigate to the Microsoft 365 or SharePoint site you want to delete the survey data from.
  2. In Site Manager or Site Content and Structure, click the name of your survey in the Quick Launch bar on the left.
  3. Click the select all. ...
  4. Click Actions, and then click Delete.
  5. Click OK.

How do I permanently Delete something from SharePoint? ›

Open the SharePoint document library where you want to delete items. To select one or more items that you want to delete, hover over the folder, and then select the checkbox. Right-click a file, folder, or link icon, and then select Delete. In the Delete confirmation dialog, click OK.

How do I 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.

Can you bulk Delete in SharePoint? ›

The solution was to use a computer that has this Sharepoint list added as a calendar on Outlook. There you could filter the list so that it contains less than 5000 items. Then it was possible to view them in a list form and do a bulk delete.

Can SharePoint sites be deleted? ›

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.

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 remove a site from my search history? ›

On your computer, open Chrome. History. Check the box next to each item that you want to remove from your History. At the top right, click Delete.

How do I Delete response forms? ›

Delete all responses from a form
  1. Open a form in Google Forms.
  2. In the top left under “Responses,” click Summary.
  3. In the top right, click More Delete all responses .
  4. Click OK.

How do I Delete a response from a survey? ›

Clearing or Deleting Responses
  1. Go to the Analyze Results section of your survey.
  2. Click the Individual Responses tab toward the top of the page.
  3. In Table view, find the response you want to delete.
  4. Click the Delete button on the right side of the table.
  5. At the confirmation message, click Delete Response.

How do I Delete comments on SharePoint site? ›

If you are the owner of the site you can simply click on the the triple dots to the right of the comment and select "Delete" Please let us know if this works!

Why can't I delete something from SharePoint? ›

Note Folder deletion can be prevented due to retention policies. In this situation, first move or delete any files in the folder that are subject to retention. The site might have exceeded its storage limit. Increase the site quota and delete the item.

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.

How do I quickly delete items from SharePoint list? ›

In your SharePoint site you can go to your list and You can click on the checkbox beside the first item on the list (It should highlight all of the items) and then click on "Items" in the List Tools ribbon and you will see a delete button.

How do I Delete a SharePoint site 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 Delete all SharePoint 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 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 hub site in SharePoint Online? ›

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

Top Articles
Crimewatch Cumberland County
Rocketcert
Cintas Pay Bill
Localfedex.com
Nyuonsite
CSC error CS0006: Metadata file 'SonarAnalyzer.dll' could not be found
Canelo Vs Ryder Directv
Umn Biology
Craigslist Labor Gigs Albuquerque
1Win - инновационное онлайн-казино и букмекерская контора
Nalley Tartar Sauce
Guidewheel lands $9M Series A-1 for SaaS that boosts manufacturing and trims carbon emissions | TechCrunch
Mbta Commuter Rail Lowell Line Schedule
Truth Of God Schedule 2023
50 Shades Darker Movie 123Movies
Tygodnik Polityka - Polityka.pl
Gentle Dental Northpointe
Days Until Oct 8
Closest Bj Near Me
Exl8000 Generator Battery
2021 Volleyball Roster
Dark Entreaty Ffxiv
Craigslist Pennsylvania Poconos
Mdt Bus Tracker 27
Santa Barbara Craigs List
Weather Underground Durham
Kristy Ann Spillane
Google Flights To Orlando
Davita Salary
Ucm Black Board
Kaiserhrconnect
Strange World Showtimes Near Regal Edwards West Covina
Craigslist West Seneca
Craigslist Greencastle
Ludvigsen Mortuary Fremont Nebraska
How To Paint Dinos In Ark
NHL training camps open with Swayman's status with the Bruins among the many questions
Cdcs Rochester
Directions To Advance Auto
Section 212 at MetLife Stadium
Verizon Outage Cuyahoga Falls Ohio
Ferguson Showroom West Chester Pa
Guided Practice Activities 5B-1 Answers
Why Are The French So Google Feud Answers
Love Words Starting with P (With Definition)
N33.Ultipro
Playboi Carti Heardle
Aznchikz
Advance Auto.parts Near Me
Black Adam Showtimes Near Kerasotes Showplace 14
Causeway Gomovies
Craigslist Centre Alabama
Latest Posts
Article information

Author: Dan Stracke

Last Updated:

Views: 5711

Rating: 4.2 / 5 (43 voted)

Reviews: 82% of readers found this page helpful

Author information

Name: Dan Stracke

Birthday: 1992-08-25

Address: 2253 Brown Springs, East Alla, OH 38634-0309

Phone: +398735162064

Job: Investor Government Associate

Hobby: Shopping, LARPing, Scrapbooking, Surfing, Slacklining, Dance, Glassblowing

Introduction: My name is Dan Stracke, I am a homely, gleaming, glamorous, inquisitive, homely, gorgeous, light person who loves writing and wants to share my knowledge and understanding with you.