public static function delete(Connection $connection, $name)
    {
        $url = UrlHelper::buildUrl(Urls::URL_DATABASE, [$name]);

        $response = $connection->delete($url);

        return $response->getJson();
    }
public static function delete(Connection $connection, $name)
    {
        $url = UrlHelper::buildUrl(Urls::URL_DATABASE, [$name]);

        $response = $connection->delete($url);

        return $response->getJson();
    }
public static function delete ( Connection $ connection , $ name ) { $ url = UrlHelper :: buildUrl ( Urls :: URL_DATABASE , [ $ name ] ) ; $ response = $ connection -> delete ( $ url ) ; return $ response -> getJson ( ) ; }
Deletes a database

This will delete an existing database.

@param Connection $connection - the connection to be used
@param string     $name       - the database specification, for example 'myDatabase'

@link https://docs.arangodb.com/HTTP/Database/index.html

@return array $responseArray - The response array.
@throws \ArangoDBClient\Exception
@throws \ArangoDBClient\ClientException
Deletes a database