Delete the given client.

@param  \Laravel\Passport\Client  $client
@return void
333507
public function delete(Client $client)
    {
        $client->tokens()->update(['revoked' => true]);

        $client->forceFill(['revoked' => true])->save();
    }
969360
public function delete($id = null)
	{
		if ($id === null) {
			foreach ($this->getLogs() as $log) {
				unlink($this->path . $log->name);
			}
		} elseif (is_array($id)) {
			foreach ($id as $key) {
				unlink($this->path . $this->getLog($key)->name);
			}
		} else {
			unlink($this->path . $this->getLog((string) $id)->name);
		}
		$this->logs = null;
	}
399822
public function deleteTemplateEntry($element, $client=1)
	{
		if ($this->baseDb->tableExists('#__extensions'))
		{
			$query = "DELETE FROM `#__extensions` WHERE `type` = 'template' AND `element` = '{$element}' AND `client_id` = '{$client}'";
			$this->baseDb->setQuery($query);
			$this->baseDb->query();

			$this->log(sprintf('Removed extension entry for template "%s"', $element));

			if ($this->baseDb->tableExists('#__template_styles'))
			{
				$query = "DELETE FROM `#__template_styles` WHERE `template` = '{$element}' AND `client_id` = '{$client}'";
				$this->baseDb->setQuery($query);
				$this->baseDb->query();

				$this->log(sprintf('Removed style entry for template "%s"', $element));

				// Now make sure we have an enabled template (don't really care which one it is)
				$query = "SELECT `id` FROM `#__template_styles` WHERE `home` = 1 AND `client_id` = '{$client}'";
				$this->baseDb->setQuery($query);
				if (!$this->baseDb->loadResult())
				{
					$query = "SELECT `id` FROM `#__template_styles` WHERE `client_id` = '{$client}' ORDER BY `id` DESC LIMIT 1";
					$this->baseDb->setQuery($query);
					if ($id = $this->baseDb->loadResult())
					{
						$query = "UPDATE `#__template_styles` SET `home` = 1 WHERE `id` = '{$id}'";
						$this->baseDb->setQuery($query);
						$this->baseDb->query();

						$this->log(sprintf('Setting "home" for template style "%s"', $id));
					}
				}
			}

			return true;
		}

		return false;
	}
1121034
public function updateClient(ClientInterface $client)
    {
        if (isset($this->clients[$client->getAccessToken()])) {
            $this->clients[$client->getAccessToken()] = $client;
        }
    }
627747
def delete_client():
    """"""
    preserve_cache = request.args.get('preserve_cache', False)
    delete_client(g.client_id, preserve_cache)
    return jsonify({'Success': True})
424502
public function handle(Client $client, $index, $alias)
    {
        $client->getIndex($index)->removeAlias($alias);
    }
1126360
public function deleteDoc($id)
    {
        $this->config['client']->delete(
            [
                'id' => $id,
                'index' => $this->getIndex()->getName(),
                'type' => $this->getType()
            ]
        );
    }
55564
public function delete($id = null)
    {
        if (! $id) {
            $id = $this->data->id;
        }

        return $this->client->delete('/{id}', ['id' => $id]);
    }
514465
public function disconnect(Client $client, $message = 'Goodbye.')
    {
        $this->fire(self::CLIENT_DISCONNECT, $client, $message);

        $this->log('Client disconnected: <pop>'.$client.'</pop>', Logger::INFO);

        $client->disconnect();

        $i = array_search($client, $this->clients);
        unset($this->clients[$i]);
    }
325700
public function delete($id)
    {
        $query = $this->createQueryBuilder();

        $query->where($this->getPrimaryKey($query), $id);
        $query->delete();
    }
82052
function _cmdClose(clientId) {
    var client = _clients[clientId];
    if (client) {
        client.socket.close();
        delete _clients[clientId];
    }
}
351995
public function delete($_id = NULL)
    {

        if ($_id) {
            $this->_id = $_id;
        }

        $parameters = [
            "id" => $this->_id,
            'client' => ['ignore' => $this->ignores]
        ];

        if ($index = $this->getIndex()) {
            $parameters["index"] = $index;
        }

        if ($type = $this->getType()) {
            $parameters["type"] = $type;
        }

        return (object)$this->connection->delete($parameters);
    }
143045
public function delete(AuthCodeEntity $token)
    {
        $this->getConnection()->table('oauth_auth_codes')
        ->where('oauth_auth_codes.id', $token->getId())
        ->delete();
    }
37902
public function delete($key)
	{
		if(!$this->exists($key)) {
			return false;
		}

		unset($this->data[$key]);

		return true;
	}
443144
public function deleteClient($clientId)
    {
        ValidationUtility::ensureStringOrInteger('$clientId', $clientId);

        $this->callServiceDeleteApi(
            self::$CLIENT_DELETE_API_PATH . $clientId);
    }
532188
public function do_delete($topic)
    {
        /** @var \ManaPHP\DbInterface $db */
        $db = $this->_di->getShared($this->_db);

        $db->delete($this->_source, ['topic' => $topic]);
    }
715776
public function delete($entity)
    {
        $this->gateway->delete($this->tableName, $this->builder->reduce($entity), $this->getIdentifier($entity));
    }