Two ways to remove search results in SharePoint

Modern SharePoint

To remove results using the search results removal option, you will need to use an account that has administrator privileges to access the SharePoint admin center.

Option 1: remove URL’s from search results

  • Navigate to the SharePoint Online admin center > press more features
  • Open Search
Under more features, open search from the SharePoint Online admin center.
  • On the search page, press Remove Search Results
  • Enter the full URL(s) of the items you want to remove from the search results. I enter each URL on a separate line
  • Press Remove Now
Enter the full URL of the document or item you want to remove, then press Remove Now.

Option 2: stop items appearing in search results at the library level

Here’s another way to remove items from the search results, this time by disabling indexing from the library where the item is stored:

  • Navigate to the library > press the cog button > library settings
  • Advanced settings > under Search > set Allow items from this document library to appear in search results? to No
  • Press OK
Set Allow items from this document library to appear in search results? to No.

NOTE: This option is only available at the library level and thus will stop everything from within the library appearing in the search results. If you only wanted say one item removed from search results, it would be better to use option 1.

A note on retrieving the crawl logs

I also wanted to call out one other part of the search results puzzle that you can make use of in modern SharePoint – that being the crawl log.

You can use SharePoint PnP cmdlets in PowerShell to return entries from the search crawl log in SharePoint. To do so you will need to be granted access to the crawl log via the SharePoint admin center.

You can use PnP cmdlets in PowerShell to query the crawl log.

This could be a useful way of viewing indexed content, however it isn’t the same as the classic crawl log, in as much as you can’t remove items from the index and it is limited to the site collection you are connected to.

Here’s some more information on getting started:


2 thoughts on “Two ways to remove search results in SharePoint

  1. Sam Willis July 13, 2022 / 1:24 pm

    Hi guys I really appreciate the helpful tips you provide, I just wanted to comment that the formatting of the email that WordPress spits out is horrible!

    Cheers Sam


    • Anthony July 13, 2022 / 12:37 pm

      Hi Sam, thanks for the comment. To be honest I’ve been considering whether or not to change up how I format my posts to be more email friendly. I know the buttons I tend to use looks rubbish on the email notifications subscribers get. Leave it with me and I’ll figure out a way to make it better.



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s