protected void deleteSelectedTags() {

		Set<FunctionTag> selectedTags = getSelectedTags();
		if (selectedTags.isEmpty()) {
			return;
		}

		// Show a confirmation message - users may not be aware that deleting a tag is more
		// than just removing it from a function.
		int option = OptionDialog.showOptionDialog(this, "Function Tag Delete",
			"Are you sure? \nThis will delete the tag from all functions in the program.", "OK",
			OptionDialog.WARNING_MESSAGE);

		if (option == OptionDialog.OPTION_ONE) {
			for (FunctionTag tag : selectedTags) {
				Command<Program> cmd = new DeleteFunctionTagCmd(tag.getName());
				tool.execute(cmd, program);
			}
		}
	}
Deletes any selected tags from the system.
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/function/tags/TagListPanel.java