SPRecycleBinItemCollection.DeleteAll Method

Deletes permanently all items from the Recycle Bin.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
<ClientCallableMethodAttribute(ClientMethodEndCodeSnippet := "EmptyCollectionData();")> _
<ClientCallableExceptionConstraintAttribute(FixedId := "thresholdexceeded", ErrorCode := , Condition := "Operation exceeds the list view threshold enforced by the administrator.",  _
    ErrorType := GetType(SPQueryThrottledException))> _
<ClientCallableExceptionConstraintAttribute(FixedId := "accessdenied", Condition := "Lack of permissions to perform the operation.",  _
    ErrorType := GetType(UnauthorizedAccessException))> _
Public Sub DeleteAll
'Usage
Dim instance As SPRecycleBinItemCollection

instance.DeleteAll()
[ClientCallableMethodAttribute(ClientMethodEndCodeSnippet = "EmptyCollectionData();")]
[ClientCallableExceptionConstraintAttribute(FixedId = "thresholdexceeded", ErrorCode = , Condition = "Operation exceeds the list view threshold enforced by the administrator.", 
    ErrorType = typeof(SPQueryThrottledException))]
[ClientCallableExceptionConstraintAttribute(FixedId = "accessdenied", Condition = "Lack of permissions to perform the operation.", 
    ErrorType = typeof(UnauthorizedAccessException))]
public void DeleteAll()

See Also

Reference

SPRecycleBinItemCollection Class

SPRecycleBinItemCollection Members

Microsoft.SharePoint Namespace