Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old


Releases the menu item.

Component Version macOS Windows Linux Server iOS SDK
Menu 4.1 ✅ Yes ✅ Yes ❌ No ❌ No ❌ No
MBS( "MenuItem.Release"; item { ; children } )   More


Parameter Description Example Flags
item The reference to the menu item. Please create one with MenuItem.CreateMenuItem or MenuItem.CreateSeparator. $item
children If 1, releases all child menu items and child menus. 0 Optional


Returns OK or error.


Releases the menu item.
You need to release menu items after you finished using it to avoid running out of memory.

See also

Release notes

This function checks for a license.

Created 18th August 2014, last changed 31st August 2014

MenuItem.List - MenuItem.ReleaseAll