Share via


SPDatabaseSnapshot.Delete method

Deletes the database snapshot permanently from the Microsoft SQL Server database.

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

Syntax

'Declaration
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
Public Sub Delete
'Usage
Dim instance As SPDatabaseSnapshot

instance.Delete()
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
public void Delete()

Remarks

Once it has been deleted with this method, the snapshot cannot be restored.

See also

Reference

SPDatabaseSnapshot class

SPDatabaseSnapshot members

Delete overload

Microsoft.SharePoint.Administration.Backup namespace