Delete Menu Item
wp_delete_menu_itemPermanently delete a WordPress menu item by ID, requiring admin privileges. Choose markdown or JSON output format.
Instructions
Permanently remove a single menu item (force delete). Requires admin.
Args:
item_id (number): Menu-item ID to remove.
response_format (enum): markdown | json.
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": {
"item_id": "<item_id>"
},
"name": "wp_delete_menu_item"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| item_id | Yes | Menu-item ID to delete. | |
| response_format | No | Output format: 'markdown' for human-readable, 'json' for machine-readable. | markdown |