Deleted Site Still Appears in Search Results: Admin Checklist
🔍 WiseChecker

Deleted Site Still Appears in Search Results: Admin Checklist

You delete a SharePoint site from the admin center, but users still find it in search results. Clicking the link returns a 404 error or an access denied page. This happens because SharePoint search indexes are not updated instantly after site deletion. The search index retains copies of site content and metadata until the next full crawl or until the index is manually cleared. This article provides a step-by-step admin checklist to remove deleted sites from SharePoint search results permanently.

Key Takeaways: Remove Deleted Sites from SharePoint Search

  • SharePoint admin center > Search > Remove Search Results: Manually remove specific URLs from the search index without waiting for a full crawl.
  • PowerShell cmdlet Remove-PnPSearchResult: Bulk remove multiple deleted site URLs from the search index using a script.
  • Content Search Web Part (CSWP) caching: Clear the CSWP cache if search results still show after index removal.

ADVERTISEMENT

Why Deleted Sites Still Appear in SharePoint Search Results

When you delete a SharePoint site, the site collection and its content are moved to the SharePoint Recycle Bin. The search index, however, is not immediately updated. SharePoint search uses two types of crawls: incremental and full. An incremental crawl runs every few minutes and updates changed content, but it does not remove entries for deleted sites unless the crawl specifically detects the deletion. A full crawl rebuilds the entire index but may be scheduled only once per day or less frequently. Until the search index is refreshed, users will see the deleted site in search results with a broken link.

Admin Checklist to Remove Deleted Sites from Search Results

  1. Verify the site is fully deleted
    Go to SharePoint admin center > Active sites. Confirm the site is not listed. If the site is still in the first-stage Recycle Bin, permanently delete it from SharePoint admin center > Recycle bin. Select the site and choose Delete permanently. A site in the Recycle Bin can still appear in search results.
  2. Remove the site URL from the search index manually
    In SharePoint admin center, go to Search > Remove Search Results. Enter the full URL of the deleted site, for example https://contoso.sharepoint.com/sites/deletedsite. Click Remove now. The URL is queued for removal. This method works for up to 100 URLs per request.
  3. Use PowerShell to remove multiple deleted site URLs
    Open SharePoint Online Management Shell. Connect to your tenant: Connect-SPOService -Url https://contoso-admin.sharepoint.com. Then run: Remove-PnPSearchResult -Query “site:https://contoso.sharepoint.com/sites/deletedsite” -RemoveAll. This cmdlet removes all search results from that site. Repeat for each deleted site URL.
  4. Request a full crawl of the search index
    If manual removal does not work, trigger a full crawl. In SharePoint admin center, go to Search > Manage Search Schema. Under Crawl Log, select Start full crawl. A full crawl can take several hours depending on your tenant size. Wait for the crawl to complete and check if the deleted site is gone.
  5. Clear the Content Search Web Part cache
    If search results still appear in a Content Search Web Part on a modern page, the CSWP may cache results. Edit the page, select the CSWP, and change the query to a temporary string, then change it back. Republish the page. This forces the web part to fetch fresh results from the index.
  6. Check third-party search solutions
    If you use a third-party search engine like Elasticsearch or a custom search application, check its index. Deleted SharePoint sites may still be cached in the third-party index. Remove the site URL from that index manually or contact the vendor for support.

ADVERTISEMENT

If Deleted Sites Still Appear After the Main Fix

Search results show the site name but no content

This indicates the site metadata (title, description) is still in the search index but the content is removed. Use the Remove Search Results option in the SharePoint admin center with the site root URL. If that does not work, run a full crawl as described in step 4.

Search results include subsites of a deleted site

When you delete a top-level site, its subsites are also deleted. However, the search index may retain individual subsite URLs. In PowerShell, use a broader query: Remove-PnPSearchResult -Query “site:https://contoso.sharepoint.com/sites/deletedsite/” -RemoveAll. This removes all URLs under the deleted site path.

Users see cached results from their browser

Instruct users to clear their browser cache and cookies. In Chrome, go to Settings > Privacy and security > Clear browsing data. Select Cached images and files and Cookies and other site data. Click Clear data. After clearing the cache, search results should update.

Manual Removal vs Full Crawl: Key Differences

Item Manual Removal via Admin Center Full Crawl
Speed Removal occurs within minutes Takes several hours to complete
Scope Removes only specified URLs Rebuilds entire search index
Administrator effort Low, one URL at a time High, affects all search results
When to use Single deleted site or small number of URLs Multiple deleted sites or index corruption

Now you can remove deleted sites from SharePoint search results using the admin center, PowerShell, or a full crawl. Start with manual removal for immediate results. If the problem persists, clear the Content Search Web Part cache and check third-party search solutions. For recurring issues, schedule a weekly PowerShell script to scan for deleted sites and remove their URLs from the search index automatically.

ADVERTISEMENT