/*
(non-Javadoc)

@see net.rubyeye.xmemcached.MemcachedClient#removeServer(java.lang.String)
357422
public final void removeServer(String hostList) {
    List<InetSocketAddress> addresses = AddrUtil.getAddresses(hostList);
    if (addresses != null && addresses.size() > 0) {
      for (InetSocketAddress address : addresses) {
        removeAddr(address);
      }

    }

  }
767743
@Override
	public final void unregister( ObjectName name ) throws JMSException
	{
	    log.debug("Unregistering object "+name);
	    try
	    {
	        this.mBeanServer.unregisterMBean(name);
	    }
	    catch (Exception e)
	    {
	        throw new FFMQException("Cannot unregister MBean","JMX_ERROR",e);
	    }
	}
1077192
public static void removeHost(String hostName) throws Exception {
        changeHost(hostName, false, false, true, false, false);
    }
945107
private void remove(PollController conn)
  {
    if (conn == null) {
      return;
    }

    JniSocketImpl socket = (JniSocketImpl) conn.getSocket();
    int nativeFd = socket.getNativeFd();

    if (_lifecycle.isDestroyed()) {
      return;
    }

    _activeCount.incrementAndGet();

    if (nativeFd > 0) {
      try {
        removeNative(_fd, nativeFd);
      } catch (Throwable e) {
        log.log(Level.WARNING, e.toString(), e);
        _lifecycle.toError();
      }
    }
    
    conn.toKeepaliveClose();

    if (_activeCount.decrementAndGet() == 0 && _lifecycle.isDestroyed()) {
      destroy();
    }
  }
149944
public void removeProxyServer(ProxyServer proxyServer) {
        proxyServers.remove(proxyServer);
        extensionHooks.values().forEach(extHook -> unhookProxyServer(extHook, proxyServer));
    }
775255
public void destroy()
    {
        __servers.remove(this);
        if (isStarted())
            throw new IllegalStateException("Started");
        if (_listeners!=null)
            _listeners.clear();
        _listeners=null;
        if (_virtualHostMap!=null)
            _virtualHostMap.clear();
        _virtualHostMap=null;
        _notFoundContext=null;

        super.destroy();
    }
659534
@Override
  public void removeClient(long clientId) {
    LOG.info("Removing client " + clientId + " ...");
    synchronized (clientModificationsLock) {
      removedClients.add(clientId);
    }
  }
1051243
public void removeHttpSession(final HttpSession session) {
		if (View.isInitialised() && !EventQueue.isDispatchThread()) {
			EventQueue.invokeLater(new Runnable() {

				@Override
				public void run() {
					removeHttpSession(session);
				}
			});

			return;
		}

		int index = sessions.indexOf(session);
		sessions.remove(index);
		fireTableRowsDeleted(index, index);
	}
15725
public synchronized void unregisterThrow(ObjectName objName) throws JMException {
		if (mbeanServer == null) {
			throw new JMException("JmxServer has not be started");
		}
		mbeanServer.unregisterMBean(objName);
		registeredCount--;
	}
780685
public void remove(final boolean removeFromSession) {
        if (removeFromSession) {
            this.sessionStore.set(this.context, Pac4jConstants.USER_PROFILES, new LinkedHashMap<String, U>());
        }
        this.context.setRequestAttribute(Pac4jConstants.USER_PROFILES, new LinkedHashMap<String, U>());
    }
1163087
def delete(*keys, **connection_args):
    '''
    
    '''
    # Get connection args from keywords if set
    conn_args = {}
    for arg in ['host', 'port', 'db', 'password']:
        if arg in connection_args:
            conn_args[arg] = connection_args[arg]

    server = _connect(**conn_args)
    return server.delete(*keys)
1354425
public static <T extends BaseEntity> void removeCache(T bean){
		if(CacheHandler.cacheProvider == null)return;
		String key = buildCacheKey(bean.getClass(), bean.getId());
		CacheHandler.cacheProvider.remove(key);
	}
1162230
def remove_service(self, zeroconf, srv_type, srv_name):
        """"""
        self.servers.remove_server(srv_name)
        logger.info(
            "Glances server %s removed from the autodetect list" % srv_name)
655651
@Override
  public final void onSessionClosed(Session session) {
    this.client.getConnector().removeSession(session);
    // Clear write queue to release noreply operations.
    ((AbstractSession) session).clearWriteQueue();
    MemcachedTCPSession memcachedSession = (MemcachedTCPSession) session;
    // destroy memached session
    memcachedSession.destroy();
    if (this.client.getConnector().isStarted() && memcachedSession.isAllowReconnect()) {
      this.reconnect(memcachedSession);
    }
    for (MemcachedClientStateListener listener : this.client.getStateListeners()) {
      listener.onDisconnected(this.client, session.getRemoteSocketAddress());
    }

  }
815822
public void remove(String tangoHost) throws DevFailed {

        //  Remove device and class in reverse order,
		//	to remove the DServer as last one.
        //  If a failure append during this method,
        //	the server will be able to reloaded.
        Database    database = ApiUtil.get_db_obj(tangoHost);
        for (int i=classes.size()-1 ; i>=0 ; i--) {
            for (TangoDevice device : classes.get(i)) {
                database.delete_device(device.name);
            }
        }

        //  Check if there is other instance(s) of classes
        for (TangoClass clazz : classes) {
            if (!clazz.name.toLowerCase().equals("dserver")) { //   NOT for DServer class
                String[]    deviceNames = database.get_device_name("*", clazz.name);
                if (deviceNames.length==0) {
                    //  There is no device any more --> remove class properties
                    clazz.removeProperties(database);
                    //System.out.println("Class properties removed for " + clazz.name);
                }
                else {
                    //System.out.println(clazz.name + " class is used. do not delete Class properties");
                }
            }
        }
    }
171445
public void remove(String user) {
		Object o = userMap.remove(user);
		if(o!=null) {
			access.log(Level.INFO, user,"removed from Client Cache by Request");
		}
	}
1200175
protected synchronized void destroyServerSocket() {
        if (null == this.serverSocket) {
            // already closed
            return;
        }
        if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
            Tr.debug(tc, "ServerSocket being closed for port " + this.listenPort);
        }
        closeServerSocket();
        this.serverSocket = null;
    }