public void removeAction(DockingActionIf action) {
		ToolBarData toolBarData = action.getToolBarData();
		if (toolBarData == null) {
			return;
		}

		String group = toolBarData.getToolBarGroup();
		List<ToolBarItemManager> groupItems = groupToItemsMap.get(group);
		if (groupItems == null) {
			return; // must have been cleared already
		}
		Iterator<ToolBarItemManager> it = groupItems.iterator();
		while (it.hasNext()) {
			ToolBarItemManager item = it.next();
			if (item.getAction() == action) {
				item.dispose();
				it.remove();
				toolBar = null; // trigger a rebuild of the menu
			}
		}

		if (groupItems.isEmpty()) {
			groupToItemsMap.remove(group); // no actions left
		}
	}
Removes the action from the toolbar.
@param action the action to be removed.
Ghidra/Framework/Docking/src/main/java/docking/menu/ToolBarManager.java