Share via


SPDatabaseSnapshotCollection.DeleteSnapshots method

Deletes all the database snapshots of the current database.

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

Syntax

'Declaration
Public Sub DeleteSnapshots
'Usage
Dim instance As SPDatabaseSnapshotCollection

instance.DeleteSnapshots()
public void DeleteSnapshots()

Remarks

Note

Do not call the RefreshSnapshots() method before you call the DeleteSnapshots() method, because the DeleteSnapshots() method calls the RefreshSnapshots() method anyway.

See also

Reference

SPDatabaseSnapshotCollection class

SPDatabaseSnapshotCollection members

Microsoft.SharePoint.Administration.Backup namespace