Delete a menu item
delete_menu_itemRemove a navigation menu item while preserving its sub-items by re-parenting them to the top level.
Instructions
Remove one item from a navigation menu. Its children are re-parented to the top level rather than deleted.
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": {
"id": "<id>"
},
"name": "delete_menu_item"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The menu item ID. | |
| site_id | No | Which configured WordPress site to act on. Optional — with a single site configured it is used automatically; with several, the default site is used unless you name one. Run list_sites for valid ids. |