Web.DeleteObject method

Deletes the website.

Namespace:  Microsoft.SharePoint.Client
Assembly:  Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)

public void DeleteObject()

ExceptionCondition
SPException

The current site is the top-level site. Error code: -2146232832.

Show: