private List<Symbol> searchNamespaceForSymbols(String name, Namespace namespace) {
		List<Symbol> list = new ArrayList<>();
		for (Symbol symbol : getSymbols(namespace)) {
			if (name.equals(symbol.getName())) {
				list.add(symbol);
			}
		}
		return list;
	}
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