Delete Elementor Element
Removes one element from an Elementor layout. Anything nested inside it is removed with it, and the response reports how many nested elements that was. This cannot be undone from here; the post's revision history is the way back.
Also known as: remove an Elementor widget, delete a section, remove a page builder element.
| Property | Value |
|---|---|
| Ability slug | mosmcp/elementor-element-delete |
| Wire tool name | mosmcp__elementor-element-delete |
| Category | Elementor (mosmcp-elementor) |
| Plan | Free |
Required access
| Requirement | Value |
|---|---|
| Capability | edit_post (checked against the specific post) |
| Minimum default role | Contributor |
| Annotations | readOnly: false · destructive: true · idempotent: false · openWorld: true |
Input schema
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| id | integer (min 1) | Yes | — | The ID of the post or page whose layout should be edited. |
| element_id | string (min length 1) | Yes | — | The Elementor element ID to delete. |
| expected_modified | string | — | Optional. The "modified" value from a previous read. The deletion is refused if the post changed since then. |
Output schema
| Field | Type | Required | Description |
|---|---|---|---|
| id | integer | Yes | |
| title | string | ||
| status | string | The post status, which these abilities never change. | |
| modified | string | New modified timestamp, usable as expected_modified on a following edit. | |
| changes | object[] | Yes | What actually changed. |
| changes[].action | string | Which structural change was made: delete, duplicate or move. | |
| changes[].element_id | string | The element affected. For a duplicate this is the new copy's ID. | |
| changes[].widget_type | string | ||
| changes[].detail | string | Plain-language description of what happened. | |
| view_url | string | ||
| elementor_url | string | ||
| warnings | object[] | Non-fatal issues encountered while running. | |
| warnings[].code | string | ||
| warnings[].message | string | ||
| warnings[].context | string |
Example
Sample prompt
Delete the old promo banner section from my home page.
Example request (json)
{
"jsonrpc": "2.0",
"id": 321,
"method": "tools/call",
"params": {
"name": "mosmcp__elementor-element-delete",
"arguments": {
"input": {
"id": 12,
"element_id": "e90b2f4"
}
}
}
}Example response (json)
{
"jsonrpc": "2.0",
"id": 321,
"result": {
"isError": false,
"structuredContent": {
"id": 12,
"title": "Home",
"status": "publish",
"modified": "2026-09-29 10:50:31",
"changes": [
{
"action": "delete",
"element_id": "e90b2f4",
"widget_type": "container",
"detail": "Deleted, along with 3 nested elements."
}
],
"view_url": "https://example.com/",
"elementor_url": "https://example.com/wp-admin/post.php?post=12&action=elementor",
"warnings": [
{
"code": "children_deleted",
"message": "This element contained 3 nested elements, which were deleted with it.",
"context": "element_id=e90b2f4"
}
]
}
}
}
Edge cases / errors
- Everything nested inside is removed too and reported in a children_deleted warning.
- No confirm step and no undo from here; the post's revision history is the way back.
- element_id not found → element_not_found; expected_modified stale → post_changed.
| << Previous | Next >> |
|---|---|
| Duplicate Elementor Element |
For more information about the Secure MCP Server for WordPress plugin, explore the following resources:
Product Overview | Pricing | Try for Free | Documentation
If you have any questions regarding plugin configuration, pricing plans or licensing, please contact us or mail us at aisupport@xecurify.com.