code: function removeMenu(id) {
          var menu,
              commandID = "";
  
          if (!id) {
              console.error("removeMenu(): missing required parameter: id");
              return;
          }
  
          if (!menuMap[id]) {
              console.error("removeMenu(): menu id not found: %s", id);
              return;
          }
  
          // Remove all of the menu items in the menu
          menu = getMenu(id);
  
          _.forEach(menuItemMap, function (value, key) {
              if (_.startsWith(key, id)) {
                  if (value.isDivider) {
                      menu.removeMenuDivider(key);
                  } else {
                      commandID = value.getCommand();
                      menu.removeMenuItem(commandID);
                  }
              }
          });
  
          if (_isHTMLMenu(id)) {
              $(_getHTMLMenu(id)).remove();
          } else {
              brackets.app.removeMenu(id, function (err) {
                  if (err) {
                      console.error("removeMenu() -- id not found: " + id + " (error: " + err + ")");
                  }
              });
          }
  
          delete menuMap[id];
      }
docs: Removes a top-level menu from the application menu bar which may be native or HTML-based.
  
  @param {!string} id - unique identifier for a menu.
  Core Menus in Brackets use a simple title as an id, for example "file-menu".
  Extensions should use the following format: "author.myextension.mymenuname".