Share via


SPListItemVersionCollection.DeleteAll method

Deletes all of the items in the collection except for the current version.

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

Syntax

'Declaration
Public Sub DeleteAll
'Usage
Dim instance As SPListItemVersionCollection

instance.DeleteAll()
public void DeleteAll()

Remarks

This DeleteAll method permanently deletes all but the current version from the collection. To move the collection into the recycle bin, use the RecycleAll method.

See also

Reference

SPListItemVersionCollection class

SPListItemVersionCollection members

Microsoft.SharePoint namespace