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)

public void DeleteAll()

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.

Show: