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.
Removes the deleted site permanently from the database.
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Sub Delete
'Usage
Dim instance As SPDeletedSite
instance.Delete()
public void Delete()
Exceptions
| Exception | Condition |
|---|---|
| FileNotFoundException | There is no content database for the deleted site. -or- The deleted site is gone. |
| NotSupportedException | Neither the content database nor the configuration database supports restoring the site. |
| NotSupportedException | The website cannot be restored on the content database or the configuration database. |
| SecurityException | The current user is not the farm administrator. |
Remarks
This method marks this deleted site as non-restorable to expire its retention period, then removes it permanently from the database.