Language
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.
Deletes the website.
Namespace: Microsoft.SharePoint.Client
Assembly: Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)
Syntax
'Declaration
Public Sub DeleteObject
'Usage
Dim instance As Web
instance.DeleteObject()
public void DeleteObject()
Exceptions
| Exception | Condition |
|---|---|
| SPException | The current site is the top-level site. Error code: -2146232832. |