Assumptions: I have a custom SharePoint list with 2 items in it.

In one case i delete one item from the list manually and check the recycle bin,here i find the deleted item.

Now in the second case i delete the second item using server object model,following is the code

     web.AllowUnsafeUpdates = true;
     web.AllowUnsafeUpdates = false;

But this time when i check the recycle bin i cannot find the deleted item, so my question is Where does an item go if it is deleted via server object model?


  • You should post new questions as new questions, and not update your question so radically after people have answered it Commented Jun 19, 2014 at 8:38

1 Answer 1


There are two options in sharepoint to delete the listitem:

  1. listitem.Recycle() deletes the list item and puts it in the recycle bin
  2. listitem.Delete() deletes the item permanently

If you delete a document in SharePoint using the User Interface, it’s being moved to the Recycle Bin, so that it can be restored if necessary. Calling the SPListItem.Delete() method. While this does the job, and deletes the item, it deletes it permanently instead of moving to the Recycle Bin. SPListItem.Recycle() method moves a list item/document to the Recycle Bin instead of deleting it permanently.

  • when we put an item in recycle bin, where is it actually stored, is it in the content_db? And how much memory does it occupy? And can we query the item which is in the recycle bin? Commented Jun 19, 2014 at 7:57
  • Most Probably yes, By default all are in content DB. I don.t have any msdn article for this.
    – Aanchal
    Commented Jun 19, 2014 at 8:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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