SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is it possible to force a search crawler to crawl through the recycle bin(s) on a SharePoint 2010 system?

I'd like to allow my users to delete files/folders in document libraries but if someone accidentally removes a file that they shouldn't it would make everyone's life a lot easier if items in the recycle bin(s) could be included in normal search results.

share|improve this question
up vote 4 down vote accepted

Don't know if there is an OOTB solution for this. I couldn't find one. I was able to find something interesting though. you can search Recycle bin using PowerShell

example : (Get-SPSite "http://SERVERNAME:PORT/").RecycleBin | ?{$_.Title -match "DeletedFile"}


Now you can use c# and PowerShell together and write a custom search solution.

share|improve this answer
Because I'm very, very new to developing for SharePoint can you point me to any references that would help me build a webpart that my users could interact with to use this functionality? I've got VS2010 and will soon be able to install the SP Dev Environment on my workstation. – newuser Apr 12 '11 at 15:52
@JonnyP I will add a link soon. I thought about writing a blog post about it. – Shoban Apr 12 '11 at 16:26
@Shoban - Sweet, I look forward to it! – newuser Apr 12 '11 at 16:28
This is nice, although it looks like it searches the site collection recycle bin only, and not the bins of each site? – Alex Angas Apr 15 '11 at 3:31
@jonnyP ... Apologies for the very late reply. Finally managed to write a blog post and was able to find a better solution in c# too. Check this post :… – Shoban Nov 4 '11 at 10:49

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.