XPLMClearAllMenuItems
XPLM_API void XPLMClearAllMenuItems(
XPLMMenuID inMenuID);
This function removes all menu items from a menu, allowing you to rebuild it. Use this function if you need to change the number of items on a menu.