SharePoint 2010: Clearing Items For Specific Content Source Tool

April 30, 2012



Recently our client needed to remove items from a specific content source.

The problem was that neither the standard SharePoint Search nor FS4SP had any support for this scenario (UI or any object API) even though it seems like a reasonable task.

The only thing the product offers us is Index Reset which clears all the searchable items in your index, and in case of FS4SP we will need to call Clear-FASTSearchContentCollection using PowerShell. 

Of course it’s a good method for clearing all content but in our case we needed to clear only one content source .

Luckily for us Mikael Svenson Found the answer, in his post he explained how we can achieve this using PowerShell script. at the end of the post he suggested turning the script into a .ps1 file or a cmdlet.

Well, I decided to do something better and turn it in to a tool Smile .

All you need is to download my ContentSourceCleaner tool and run it on a SharePoint server.

1.  In the first combo box choose the appropriate Search Service Application and

2. In the second combo box choose the content source.

hit the ‘Clear!’ button and if the operation succeeded you will get a green check that triggers a delete mechanism which will remove all items from a specific content source .


Shortly the process will start (in my opinion there is probably some timer job that is being started)


There are couple of ways to check the process of removing items:

1. In crawl history you will see deleted items. 


2. In most of the times you will see current crawl duration time even though the status is in idle, it indicates the time it takes to remove the content source’s items.



3. Check the result item count ( it should decrease).


Download content source cleaner.

See u next time. Smile

Add comment
facebook linkedin twitter email

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>



  1. shanmugaOctober 30, 2012 ב 11:44

    I tried this tool. But once i selected search service application option, it is automatically closed

  2. choroshinNovember 1, 2012 ב 18:12

    Hi Shanmuga,
    Have you tried opening this tool as administrator?

  3. expectedexceptionFebruary 18, 2014 ב 16:35

    If you just edit a content source and delete a start address, SharePoint will automatically remove the items from the index that belong to the deleted start address.

    This can take a few minutes and can be verified the same way as described at the end of this post.

    May be easier than using custom tools.