@Override
	public boolean applyTo(Program program) {
		ReferenceManager refMgr = program.getReferenceManager();

		Reference[] refs = refMgr.getReferencesFrom(fromAddr, opIndex);
		for (Reference ref : refs) {
			if (ref.isExternalReference()) {
				refMgr.delete(ref);
			}
		}

		return true;
	}
Constructs a new command for removing an external reference.
@param fromAddr the address of the codeunit making the external reference.
@param opIndex the operand index.
Ghidra/Features/Base/src/main/java/ghidra/app/cmd/refs/RemoveExternalRefCmd.java