SPListItemVersionCollection.DeleteAll Method

Deletes the collection of versions except for the current version.

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

Syntax

Public Sub DeleteAll

Dim instance As SPListItemVersionCollection

instance.DeleteAll()
public void DeleteAll()

Remarks

The DeleteAll method permanently deletes the version collection. To move the collection into the recycle bin, use the RecycleAll method.

See Also

Reference

SPListItemVersionCollection Class

SPListItemVersionCollection Members

Microsoft.SharePoint Namespace