bricks_remove_element
Remove a Bricks element and all its descendants from a page using its element ID. Useful for cleaning up or restructuring page content.
Instructions
Remove an element by its element ID from a page. Also removes all descendant elements.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"post_id": "<post_id>",
"element_id": "<element_id>"
},
"name": "bricks_remove_element"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | No | Site key for multi-site support. Available: main. Defaults to "main". | |
| post_id | Yes | The page/post ID | |
| element_id | Yes | The Bricks element ID to remove | |
| post_type | No | Post type slug. Use "pages" for pages, "posts" for posts, or any registered CPT slug (e.g., "product", "portfolio"). Defaults to "pages". |