Menu Toolswordpress_delete_menu_item

wordpress_delete_menu_item

Delete a WordPress menu item.

wordpress_delete_menu_item

Delete a menu item.

Parameters

1 parameter, 1 required.

NameTypeRequiredWhat it is
item_idnumberyesMenu item ID

Example call

The smallest valid call, with the required parameters only:

{
  "name": "wordpress_delete_menu_item",
  "arguments": {
    "item_id": 123
  }
}

Response

{
  "success": true,
  "deleted": true,
  "item_id": 1001
}

What it changes

It removes or overwrites something on the site, so treat it as the careful kind of call. Respira takes a snapshot before the write, and the change can be undone from that snapshot for 90 days. Calling it twice with the same arguments leaves the site in the same state as calling it once. On a connection set to read-only it is refused with respira_scope_denied.

How long it takes

A typical call takes about 1.9 seconds. 19 in 20 finish within 4.3 seconds. Measured on real sites over the last week, so it includes the site's own hosting.

Availability

Works on any WordPress site, whichever page builder it uses. Available since Respira 1.0.0.

Example Prompts

  • "Delete menu item 1001"
  • "Remove the broken menu link from my primary menu"