Share via


Web.DeleteObject method

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.

See also

Reference

Web class

Web members

Microsoft.SharePoint.Client namespace