Table of contents
TOC
Collapse the table of content
Expand the table of content

PageExtensions.DeleteWebPart Method

SharePoint Dev Documents|Last Updated: 5/20/2017
|
1 Contributor

Deletes a web part from a page

Namespace:Microsoft.SharePoint.Client
Assembly: OfficeDevPnP.Core.dll

Syntax

public static void DeleteWebPart(this Web web, String folder, String title, String page)

Parameters

web

  Type: Microsoft.SharePoint.Client.Web
  Site to be processed - can be root web or sub site

folder

  Type: System.String
  System name of the wiki page library - typically sitepages

title

  Type: System.String
  Title of the web part that needs to be deleted

page

  Type: System.String
  Page to remove the web part from

Return Value

Type: void

See also

© 2018 Microsoft