XPLMDestroyMenu

XPLM_API void       XPLMDestroyMenu(
                         XPLMMenuID           inMenuID);

This function destroys a menu that you have created. Use this to remove a submenu if necessary. (Normally this function will not be necessary.)