src/Api/Key.php
public function delete(string $projectKey, string $keyId)
    {
        $response = $this->httpDelete(sprintf('/api/v2/projects/%s/keys/%s', $projectKey, $keyId));

        if (!$this->hydrator) {
            return $response;
        }

        if ($response->getStatusCode() !== 204) {
            $this->handleErrors($response);
        }

        return true;
    }
public function delete(string $projectKey, string $keyId)
    {
        $response = $this->httpDelete(sprintf('/api/v2/projects/%s/keys/%s', $projectKey, $keyId));

        if (!$this->hydrator) {
            return $response;
        }

        if ($response->getStatusCode() !== 204) {
            $this->handleErrors($response);
        }

        return true;
    }
public function delete ( string $ projectKey , string $ keyId ) { $ response = $ this -> httpDelete ( sprintf ( '/api/v2/projects/%s/keys/%s' , $ projectKey , $ keyId ) ) ; if ( ! $ this -> hydrator ) { return $ response ; } if ( $ response -> getStatusCode ( ) !== 204 ) { $ this -> handleErrors ( $ response ) ; } return true ; }
Delete a key.

@param string $projectKey
@param string $keyId

@return bool|ResponseInterface
Delete a key .