public boolean delete(boolean keepReferences) {
		lock.acquire();
		try {
			if (!keepReferences) {
				symbolMgr.getReferenceManager().removeAllReferencesTo(getAddress());
			}
			return super.delete();
		}
		finally {
			lock.release();
		}
	}
Delete code/label symbol
@param keepReferences if false all references to this symbols address will be removed,
otherwise associated references will simply be disassociated following symbol removal
(see {@link SymbolManager#doRemoveSymbol(SymbolDB)}.
@return true if symbol successfully removed
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/symbol/CodeSymbol.java