Menus: remove item
menus_remove_itemRemove a menu item and its direct child items. Refuses locked items or items with locked or nested children; move those first.
Instructions
Remove a menu item, along with its child items. Deletes the item and its direct child items from the menu. It refuses locked built-in items, and items whose children are locked or have children of their own; move those out first with menus_update_item. It changes or deletes existing data, so check with the user before running it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| item_id | Yes | Menu item ID to remove | |
| menu_id | Yes | Menu ID the item belongs to. Find it with menus_list. |