Delete a page
elementor_delete_pageMove an Elementor page to trash or permanently delete it using its post ID; permanent removal requires force, site opt-in for destructive operations, and confirmation.
Instructions
Move a page to the trash, or delete it permanently with force. Permanent deletion additionally requires the site to have opted into destructive operations and confirm to be true.
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": {
"postId": "<postId>"
},
"name": "elementor_delete_page"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | No | Configured site name. Omit to use the default site. | |
| force | No | Skip the trash and delete permanently. Cannot be undone. | |
| postId | Yes | WordPress post ID of the Elementor page, post or template. | |
| confirm | No | Required when force is true. |