Partilhar 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