Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

Similar to this question, I need to permanently delete only specific items from the recycle bin. I need to know more than just their names, however, and SPRecycleBinItem seems to have only have a LeafName and DirName property, no Item property to see what the deleted item actually contains (I need the SPListItem).

Does anyone know if there's a way to actually get the deleted objects? Perhaps a hidden recycle bin list buried somewhere?

As for why I need to do this, I'm trying to design a way to programmatically delete content types that actually works.

Thanks.

share|improve this question
add comment

1 Answer 1

up vote 0 down vote accepted

When a user deletes a document seems like document binaries are deleted from table AllDocs to RecycleBin where it only keeps some information about document. These tables are in content database of that application.

I am not able to figure out as what it does with <Binary data> when a document record is moved from alldocs to recyclebin table. as this Binary data keeps all meta data about document and when you restore document, it uses it to restore document.

I don't think there is any easy way to get other properties of deleted document unless you do a hack which will going to be complex and HIGHLY NOT RECOMMENDED. You might want to change the logic of your solution.

share|improve this answer
1  
Too bad. Maybe someday they'll actually improve the API. –  MgSam Apr 23 '13 at 16:36
add comment

Your Answer

 
discard

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.