Share via


PublishingWeb.Delete Method (Boolean)

Deletes the current PublishingWeb instance and potentially all sites in the subtree with a node in this PublishingWeb.

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

Syntax

'Declaration
Public Sub Delete ( _
    recursive As Boolean _
)
'Usage
Dim instance As PublishingWeb
Dim recursive As Boolean

instance.Delete(recursive)
public void Delete(
    bool recursive
)

Parameters

  • recursive
    Type: System.Boolean
    Set this parameter to True if you want a recursive delete. Otherwise, set to False.

Remarks

After calling this method, you should call the Update method to save changes.

See Also

Reference

PublishingWeb Class

PublishingWeb Members

Delete Overload

Microsoft.SharePoint.Publishing Namespace

Delete