public function deleteServer($name)
    {
        if (isset($this->config['servers']) && isset($this->config['servers'][$name])) {
            unset($this->config['servers'][$name]);
            $this->ldapUserRepo->deleteUsersByServerName($name);

            return $this->saveConfig();
        }
    }
public function deleteServer($name)
    {
        if (isset($this->config['servers']) && isset($this->config['servers'][$name])) {
            unset($this->config['servers'][$name]);
            $this->ldapUserRepo->deleteUsersByServerName($name);

            return $this->saveConfig();
        }
    }
public function deleteServer ( $ name ) { if ( isset ( $ this -> config [ 'servers' ] ) && isset ( $ this -> config [ 'servers' ] [ $ name ] ) ) { unset ( $ this -> config [ 'servers' ] [ $ name ] ) ; $ this -> ldapUserRepo -> deleteUsersByServerName ( $ name ) ; return $ this -> saveConfig ( ) ; } }
Delete a server configuration.

@param $name The name of the server
@param name The name of the server

@return bool
Delete a server configuration .