SP.WebParts.WebPartDefinition.deleteWebPart Method (sp.js)
Deletes the Web Part from the page.
Applies to: apps for SharePoint | SharePoint Foundation 2013 | SharePoint Server 2013
SP.WebParts.WebPartDefinition.deleteWebPart()
Exceptions
Exceptions
Exception Type |
Condition |
---|---|
[Microsoft.SharePoint.WebPartPages.WebPartPageUserException] |
The current user has insufficient permissions. Error code: -1. |
Remarks
When Scope is User, the current user must have permissions to add and delete personalized Web Parts. When Scope is Shared, the current user must have permissions to customize pages.