Menu Toolswordpress_delete_menu

wordpress_delete_menu

Delete a WordPress navigation menu.

wordpress_delete_menu

Delete a navigation menu.

Parameters

2 parameters, 1 required.

NameTypeRequiredWhat it is
idnumberyesMenu ID
approval_tokenstringnoSingle-use approval token from a prior respira_approval_required response. Pass the token from data.approval_request.approval_token to complete the delete.

Example call

The smallest valid call, with the required parameters only:

{
  "name": "wordpress_delete_menu",
  "arguments": {
    "id": 123
  }
}

Response

{
  "success": true,
  "deleted": true,
  "id": 10
}

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. On a page or post the edit lands on a copy first. The live page changes only when a person approves the copy in wp-admin. 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.

Availability

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

Notes

  • Deleting a menu does not delete pages/posts it links to

Example Prompts

  • "Delete menu 10"
  • "Remove the unused footer menu"