src/Yandex/Metrica/MetricaClient.php
protected function sendDeleteRequest($resource)
    {
        $response = $this->sendRequest(
            'DELETE',
            $this->getServiceUrl($resource),
            [
                'headers' => [
                    'Accept' => 'application/x-yametrika+json',
                    'Content-Type' => 'application/x-yametrika+json',
                    'Authorization' => 'OAuth ' . $this->getAccessToken(),
                ]
            ]
        );

        return $this->getDecodedBody($response->getBody());
    }
protected function sendDeleteRequest($resource)
    {
        $response = $this->sendRequest(
            'DELETE',
            $this->getServiceUrl($resource),
            [
                'headers' => [
                    'Accept' => 'application/x-yametrika+json',
                    'Content-Type' => 'application/x-yametrika+json',
                    'Authorization' => 'OAuth ' . $this->getAccessToken(),
                ]
            ]
        );

        return $this->getDecodedBody($response->getBody());
    }
protected function sendDeleteRequest ( $ resource ) { $ response = $ this -> sendRequest ( 'DELETE' , $ this -> getServiceUrl ( $ resource ) , [ 'headers' => [ 'Accept' => 'application/x-yametrika+json' , 'Content-Type' => 'application/x-yametrika+json' , 'Authorization' => 'OAuth ' . $ this -> getAccessToken ( ) , ] ] ) ; return $ this -> getDecodedBody ( $ response -> getBody ( ) ) ; }
Send DELETE request to API resource

@param string $resource
@return array
Send DELETE request to API resource