Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Deletes the collection of versions except for the current version.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
Syntax
'Declaration
Public Sub DeleteAll
'Usage
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