Delete Divi Module
Removes a module — and anything nested inside it — from a post. This changes the live page and cannot be undone from here (the post's revision history is the way back). Requires confirm=true.
| Property | Value |
|---|---|
| Ability slug | mosmcp/divi-element-delete |
| Wire tool name | mosmcp__divi-element-delete |
| Category | Divi (mosmcp-divi) |
| Plan | Pro |
Required access
| Requirement | Value |
|---|---|
| Capability | edit_post (checked against the specific post) |
| Minimum default role | Contributor |
| Annotations | readOnly: false · destructive: true · idempotent: true · openWorld: false |
Input schema
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| post_id | integer (min 1) | Yes | — | The ID of the post or page. |
| module_index | integer (min 0) | Yes | — | The module index to remove (see mosmcp/divi-page-read). |
| confirm | boolean | — | Must be true to confirm removing the module from the post. Not required when dry_run is set, since nothing is persisted either way. | |
| expected_modified | string | — | Optional. The "modified" value from a previous read. The edit is refused if the post changed since then. | |
| dry_run | boolean | false |
If true, computes and returns what would change without saving anything. | |
| skip_cache_clear | boolean | false |
Optional. Skip clearing Divi's static CSS cache for this post after the write. Defaults to false (cache is cleared, matching prior behavior). |
Output schema
| Field | Type | Required | Description |
|---|---|---|---|
| post_id | integer | Yes | |
| title | string | ||
| modified | string | New modified timestamp, usable as expected_modified on a following edit. Unchanged from the pre-write value when dry_run was set. | |
| changes | object[] | Yes | What actually changed, or — when dry_run was set — what would change. A request that would change nothing is refused rather than reported as empty. |
| changes[].action | string | ||
| changes[].module_index | integer | ||
| changes[].tag | string | ||
| changes[].removed_count | integer | The removed module plus everything nested inside it. | |
| dry_run | boolean | True when this was a dry run: "changes" describes what would happen, but nothing was saved. | |
| view_url | string | ||
| edit_url | string | ||
| warnings | object[] | Non-fatal issues encountered while running. | |
| warnings[].code | string | ||
| warnings[].message | string | ||
| warnings[].context | string |
| << Previous | Next >> |
|---|---|
| Clear Divi Cache | Duplicate Divi Module |
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.