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 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.Booleantrue for a recursive delete; otherwise, false.
Remarks
After calling this method, you should call the Update method to save changes.