@Override
	public boolean applyTo(Program program) {
		ReferenceManager refMgr = program.getReferenceManager();
		Reference ref = refMgr.getReference(fromAddr, toAddr, opIndex);
		if (ref != null) {
			refMgr.delete(ref);
			fixupReferencedVariable(program, ref);
			return true;
		}

		status = "Reference not found";
		return false;
	}
Constructs a new command for removing a memory reference.
@param fromAddr the address of the codeunit making the reference.
@param toAddr the address being referred to.
@param opIndex the operand index.
Ghidra/Features/Base/src/main/java/ghidra/app/cmd/refs/RemoveReferenceCmd.java