You deleted a SharePoint site, but it still shows up in search results. This problem affects both SharePoint search and Microsoft Search in Office 365. The root cause is that SharePoint search index does not remove deleted content immediately. This article explains why the site remains in search results and provides the exact steps to force its removal.
When you delete a site from the SharePoint admin center or through site settings, the site is moved to the Recycle Bin. The search index still holds a copy of the site’s content until the crawler runs again or the index is manually refreshed. This delay can last up to 24 hours or longer if the site is in the second-stage Recycle Bin.
This article covers the technical reason for the delay, the manual steps to remove the site from search results, and what to do if the site still appears after following those steps.
Key Takeaways: Forcing Removal of a Deleted Site from SharePoint Search
- SharePoint admin center > Search > Managed paths: Exclude the deleted site URL from search crawling.
- SharePoint Online Management Shell: Use the Remove-PnPSiteSearchEntry cmdlet to remove the site from the search index.
- Site Collection Recycle Bin: Permanently delete the site from the second-stage Recycle Bin to stop index retention.
Why a Deleted Site Still Appears in Search Results
When you delete a SharePoint site, the site is not immediately removed from the search index. The search index is a separate database that stores copies of site content for fast retrieval. Deleting the site sends a removal request to the search indexing engine, but the engine processes this request on its own schedule.
The default crawl schedule for SharePoint Online is every 24 hours for full crawls and every 15 minutes for incremental crawls. If the site was deleted shortly after an incremental crawl, the index may not reflect the deletion for up to 24 hours. Additionally, the site may still be in the Recycle Bin. SharePoint search treats items in the Recycle Bin as still existing until they are permanently deleted.
Another factor is the second-stage Recycle Bin. When you delete a site from the first-stage Recycle Bin, it moves to the second-stage Recycle Bin. The site remains searchable until it is permanently deleted from that location. The second-stage Recycle Bin retains items for 93 days by default.
The Role of the Search Index
The search index is built from crawled content. When a site is deleted, the crawler receives a notice to remove the content. However, the removal is not instantaneous. The index entry remains until the next full crawl completes. If the site was indexed under a managed path, the crawler may still attempt to crawl that path if the exclusion rule is not updated.
Why the Recycle Bin Matters
SharePoint Online has a two-stage Recycle Bin. The first stage holds deleted sites for 93 days. The second stage holds sites deleted from the first stage for the remainder of the 93 days. During this time, the search index treats the site as existing. Only permanent deletion triggers a full removal request to the search index.
Steps to Remove a Deleted Site from Search Results
Follow these steps in order. Start with the simplest method and escalate if the site still appears.
Method 1: Permanently Delete the Site from the Recycle Bin
- Open the SharePoint admin center
Go to SharePoint admin center > Sites > Active sites. Locate the deleted site. If the site is not listed, proceed to the next step. - Check the first-stage Recycle Bin
In the SharePoint admin center, select Recycle Bin from the left navigation. Look for the deleted site. If found, select the site and click Delete permanently. - Check the second-stage Recycle Bin
If the site is not in the first-stage Recycle Bin, go to Recycle Bin > Second-stage Recycle Bin. Select the site and click Delete permanently. - Wait for the next incremental crawl
After permanent deletion, the search index receives a removal request. The request is processed during the next incremental crawl, which occurs every 15 minutes. Check search results after one hour.
Method 2: Exclude the Site URL from Search Crawling
- Open the SharePoint admin center
Go to SharePoint admin center > Search. - Select Managed paths
Click Managed paths in the left navigation. This setting controls which URLs the crawler processes. - Add an exclusion path
Click Add path. Enter the full URL of the deleted site, for examplehttps://contoso.sharepoint.com/sites/deletedsite. Select Explicit inclusion or Wildcard inclusion depending on your needs. If the site was under a managed path, use the wildcard option to exclude all sub-sites under that path. - Save and verify
Click Save. The crawler will skip this URL in future crawls. Existing index entries remain until the next full crawl.
Method 3: Use SharePoint Online Management Shell to Remove the Index Entry
- Install the PnP PowerShell module
Open Windows PowerShell as an administrator. RunInstall-Module PnP.PowerShell -Scope CurrentUser. If you already have the module, runUpdate-Module PnP.PowerShell. - Connect to your SharePoint tenant
RunConnect-PnPOnline -Url https://contoso-admin.sharepoint.com -Interactive. Replace the URL with your tenant admin URL. - Remove the site from the search index
RunRemove-PnPSiteSearchEntry -SiteUrl https://contoso.sharepoint.com/sites/deletedsite. Replace the URL with your deleted site’s URL. Confirm the action when prompted. - Verify removal
RunGet-PnPSiteSearchEntry -SiteUrl https://contoso.sharepoint.com/sites/deletedsite. If the cmdlet returns no results, the site is removed from the index.
Method 4: Request a Full Crawl of the Content Source
- Open the SharePoint admin center
Go to SharePoint admin center > Search > Content sources. - Select the content source
Click the content source that includes the deleted site. Typically this is Local SharePoint sites. - Start a full crawl
Click Start full crawl. A full crawl processes all content and removes entries for deleted sites. This may take several hours depending on the size of your tenant.
If the Deleted Site Still Appears After Manual Removal
Site URL Was Reused
If a new site was created with the same URL as the deleted site, the new site’s content is indexed under that URL. The search results show the new site, not the deleted one. Verify the site URL by clicking the search result. If the site is active, no action is needed.
Site Was Part of a Hub
Sites associated with a hub may retain search entries longer. The hub association creates additional metadata that the search index holds. Remove the site from the hub before deletion. If the site is already deleted, you may need to use the SharePoint Online Management Shell to remove the hub association entry from the index.
Search Results Cached by Browser
Your browser may cache search results. Clear your browser cache and cookies. In Microsoft Edge, press Ctrl + Shift + Del, select Cached images and files and Cookies and other site data, then click Clear now.
Search Results from Microsoft Search in Bing
Microsoft Search in Bing may index SharePoint sites separately. The removal process for Bing can take up to 48 hours. To accelerate removal, submit a request through the Microsoft 365 admin center > Support > New service request. Provide the site URL and the time of deletion.
Deletion Methods and Their Effect on Search Index Retention
| Deletion Method | Time to Index Removal | Manual Removal Possible? |
|---|---|---|
| Delete from Active Sites (admin center) | Up to 24 hours | Yes, via PowerShell or exclusion path |
| Delete from first-stage Recycle Bin | Up to 24 hours after permanent deletion | Yes, via PowerShell |
| Delete from second-stage Recycle Bin | Up to 24 hours after permanent deletion | Yes, via PowerShell |
| Site deletion via PowerShell | Up to 24 hours | Yes, via Remove-PnPSiteSearchEntry |
| Hub site disassociation | Up to 48 hours | Yes, via PowerShell |
You can now remove a deleted site from search results using the SharePoint admin center, PowerShell, or exclusion paths. Start by permanently deleting the site from both Recycle Bins. If the site still appears, use the Remove-PnPSiteSearchEntry cmdlet to force removal. For persistent cases, request a full crawl or contact Microsoft Support for Microsoft Search in Bing. An advanced tip: schedule a weekly PowerShell script that runs Remove-PnPSiteSearchEntry against any site that was deleted in the past 24 hours to prevent this issue entirely.