SPListItem.Recycle method
SharePoint 2013
Deletes the item from the content database and returns a globally unique identifier (GUID) for the transaction.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
[ClientCallableExceptionConstraintAttribute(FixedId = "2", ErrorCode = , Condition = "Item does not exist.The page you selected contains an item that does not exist. It may have been deleted by another user.", ErrorType = typeof(SPException))] [ClientCallableMethodAttribute(RemoveThisObjectFromParentCollection = true)] [ClientCallableExceptionConstraintAttribute(FixedId = "3", Condition = "Method 'Recycle' is not supported on Microsoft.SharePoint.SPListItem for external lists.", ErrorType = typeof(NotSupportedException))] public Guid Recycle()
| Exception | Condition |
|---|---|
| NotSupportedException | The parent list has an external data source. |