Delete Navigation Menu
wp_delete_menuPermanently delete a WordPress navigation menu and all its items. Requires admin privileges. Irreversible.
Instructions
Permanently delete a navigation menu and all its items (force delete). Requires admin. This cannot be undone via the API.
Args:
menu_id (number): Menu to delete.
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": {
"menu_id": "<menu_id>"
},
"name": "wp_delete_menu"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| menu_id | Yes | Menu ID to delete. | |
| response_format | No | Output format: 'markdown' for human-readable, 'json' for machine-readable. | markdown |