private Symbol getSymbolForDynamicName(String name) {
		Address address = SymbolUtilities.parseDynamicName(addrMap.getAddressFactory(), name);
		if (address != null) {
			Symbol primarySymbol = getPrimarySymbol(address);
			if (primarySymbol != null && primarySymbol.getSource() == SourceType.DEFAULT &&
				name.equals(primarySymbol.getName())) {
				return primarySymbol;
			}
		}
		return null;
	}
Removes the symbol directly

@param sym the symbol to remove.
@return true if the symbol was removed, false otherwise.
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/symbol/SymbolManager.java