Share via


FileVersionCollection.DeleteAll method

Deletes all the file version objects in the collection.

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

Syntax

'Declaration
Public Sub DeleteAll
'Usage
Dim instance As FileVersionCollection

instance.DeleteAll()
public void DeleteAll()

Exceptions

Exception Condition
SPException

Specified file URL is invalid. Error code: -2130575312.

DirectoryNotFoundException

File version obtained internally refers to a version that does not exist anymore. Error code: -2147024893.

UnauthorizedAccessException

The current user has insufficient permissions. Error code: -2147024891.

See also

Reference

FileVersionCollection class

FileVersionCollection members

Microsoft.SharePoint.Client namespace