public final void removeEquates(Instruction instruction, int operandIndex) {
		Address address = instruction.getMinAddress();
		List<Equate> equates = currentProgram.getEquateTable().getEquates(address, operandIndex);
		for (Equate equate : equates) {
			equate.removeReference(address, operandIndex);
			if (equate.getReferenceCount() == 0) {
				if (equate.getReferenceCount() == 0) {
					currentProgram.getEquateTable().removeEquate(equate.getName());
				}
			}
		}
	}
Removes the equates defined at the operand index of the instruction.
@param instruction the instruction
@param operandIndex the operand index
Ghidra/Features/Base/src/main/java/ghidra/program/flatapi/FlatProgramAPI.java