private Symbol searchNamespaceForFirstSymbol(String name, Namespace namespace,
			Predicate<Symbol> test) {
		for (Symbol symbol : getSymbols(namespace)) {
			if (name.equals(symbol.getName()) && test.test(symbol)) {
				return symbol;
			}
		}
		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