AI Abilities is a Premium Addons for Elementor feature that connects AI clients such as Claude, Cursor, and Codex to your WordPress site through a built-in MCP server. Each ability is one action the connected AI can perform on your site. This doc covers one of the Build abilities: Remove Element.
Remove Element lets your AI client delete an element from a page, post, or template by its element ID. It works on any element: a single widget, or a whole container along with everything nested inside it.
It rounds out the Build category. With adding, updating, and removing available, the AI can restructure a page the same way you would in the editor: drop what no longer belongs, then build the replacement.
At a Glance
| Category | Build |
| Access | Write |
| Destructive | Yes: removing a container also removes everything inside it |
| MCP tool name | premium-addons/remove-element |
| Available since | Premium Addons v4.11.85 |
Before You Start
This ability is part of the AI Abilities feature. If you have not set it up yet, follow the Elementor AI Abilities (MCP Tools) Tutorial first to enable the feature and connect your AI client. The ability must also be switched on under Premium Addons → MCP Config & AI Abilities, in the Build category:
Use Cases
Clear out an outdated section. Ask your AI client to “Remove the Black Friday banner section from my homepage.” The AI reads the page structure, identifies the section’s container, and removes it with all the widgets inside in one call.
Rebuild instead of patching. Prompt “Replace the testimonials section on my About page with the Premium Testimonials widget in a two-column layout.” The AI removes the old section, then builds the new one with Add Container and Insert Widget.
Declutter a duplicated draft. After duplicating a page as a starting point, ask “Strip everything except the header and hero from the new draft.” The AI walks the structure and removes the leftover sections one by one, leaving a clean base to build on.
Good to Know
- This is the one destructive Build ability. Removing a container takes every nested element with it, so a wrong ID can erase a whole section. If you want the AI to double-check before deleting, say so in your prompt.
- The AI finds element IDs with
premium-addons/get-page-structure; guessing IDs is how the wrong element gets removed. - If no element with the given ID exists in the document, nothing is deleted and the ability returns an error.
- The page is saved through Elementor’s own document API, which regenerates the page CSS, and the output includes the editor link so you can review the result right away.
- Calling it twice with the same ID is safe. The second call finds nothing and reports an error instead of deleting something else.
Inputs
| Parameter | Required | Description |
|---|---|---|
post_id | Yes | The page, post, or template containing the element. |
element_id | Yes | The element to remove. For a container, everything nested inside is removed too. |
Output
| Field | Description |
|---|---|
post_id | The document the element was removed from. |
element_id | The removed element. |
removed | True when the element was removed and the page saved. |
edit_url | The Elementor editor link for the page, to review the change. |
Come & Join the Community
Feel free to join our Facebook group and subscribe to our YouTube channel to keep up with our newest features, improvements, and helpful video tutorials.