Menu.RemoveItem
---------------

Removes a menu item from the menu.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Menu](component_Menu.md) | [4.1](newinversion41.md) | ✅ Yes | ✅ Yes | ❌ No | ❌ No | ❌ No |

MBS( "Menu.RemoveItem"; menu; Item ) 

**MBS**( **"Menu.RemoveItem";** /\* Removes a menu item from the menu. \*/  
**$menu**; /\* The reference to the menu. Please create one with [Menu.CreateMenu](MenuCreateMenu.md). \*/   
**$Item**) /\* The reference to the menu item to be removed. \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| menu | The reference to the menu. Please create one with [Menu.CreateMenu](MenuCreateMenu.md). | $menu |
| Item | The reference to the menu item to be removed. | $item |

### Result

Returns OK or error.

### Description

Removes a menu item from the menu.  
Please use [Menu.RemoveItemAtIndex](MenuRemoveItemAtIndex.md) if you have the index and not the reference number.  
### See also

- [Menu.CreateMenu](MenuCreateMenu.md)
- [Menu.RemoveAllItems](MenuRemoveAllItems.md)
- [Menu.RemoveItemAtIndex](MenuRemoveItemAtIndex.md)

### Release notes

- **Version 9.0**
    - Improved out of bounds error message for [Menu.InsertItem](http://www.mbsplugins.eu/MenuInsertItem.shtml), [Menu.RemoveItemAtIndex](http://www.mbsplugins.eu/MenuRemoveItemAtIndex.shtml), [Calendar.Item.GetAttendeeURL](http://www.mbsplugins.eu/CalendarItemGetAttendeeURL.shtml), [Calendar.Item.GetAttendeeCommonName](http://www.mbsplugins.eu/CalendarItemGetAttendeeCommonName.shtml), [Calendar.Item.GetAttendeeStatus](http://www.mbsplugins.eu/CalendarItemGetAttendeeStatus.shtml), [Printer.PrinterName](http://www.mbsplugins.eu/PrinterPrinterName.shtml) and [CLGeocoder.PlacemarkValue](http://www.mbsplugins.eu/CLGeocoderPlacemarkValue.shtml).

### FileMaker Magazin

- [Ausgabe 2/2021, Seite 30](https://filemaker-magazin.de/neuigkeit/4132-Appetithappen-FMM_202102)

This function checks for a license.

Created 18th August 2014 , last changed 29th April 2015

  
[Menu.RemoveAllItems](MenuRemoveAllItems.md) - [Menu.RemoveItemAtIndex](MenuRemoveItemAtIndex.md)

[HTML Version](MenuRemoveItem.shtml)