modx_delete_element
Delete MODX elements safely by previewing with dry_run first to see what would be removed and where it is still referenced before confirming deletion.
Instructions
Delete a MODX element. Run with dry_run:true FIRST — it returns what would be deleted plus where the element is still referenced (for resources: child-resource count), without deleting. Review that before the real delete.
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": {
"type": "<type>"
},
"name": "modx_delete_element"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| name | No | ||
| type | Yes | ||
| dry_run | No | Preview what would be deleted + its usages, without deleting. |