SPRecycleBinItemCollection.Delete Method
Deletes the specified items from the Recycle Bin permanently.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
Syntax
'Declaration
Public Sub Delete ( _
ids As Guid() _
)
'Usage
Dim instance As SPRecycleBinItemCollection
Dim ids As Guid()
instance.Delete(ids)
public void Delete(
Guid[] ids
)
Parameters
ids
Type: []The IDs of the items to delete.
Exceptions
Exception | Condition |
---|---|
ArgumentOutOfRangeException | Some of the items do not exist in the recycle bin item collection. |
Remarks
This method deletes the items that are associated with the values in ids.
See Also
Reference
SPRecycleBinItemCollection Class