public function delete(): void
    {
        $response = $this->client->delete(
            new Request(
                $this->channelUrl,
                [
                    'Accept' => 'application/json'
                ]
            )
        );

        if (!in_array($response->statusCode(), [Response::OK, RESPONSE::NOT_FOUND])) {
            throw new NchanException(
                sprintf(
                    'Unable to delete channel. Maybe the channel does not exists. HTTP status code was %s.',
                    $response->statusCode()
                )
            );
        }
    }