SPListItem.Recycle method

Deletes the item from the content database and returns a globally unique identifier (GUID) for the transaction.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

public Guid Recycle()

Return value

Type: System.Guid
An identifier for the deletion transaction.

ExceptionCondition
NotSupportedException

The parent list has an external data source.

Show: