public function delete($endpointId)
    {
        if (ArrayOperations::checkNull([$endpointId])) {
            throw
            new PlivoValidationException(
                'endpoint id is mandatory');
        }
        
        $this->client->delete(
            $this->uri . $endpointId . '/',
            []
        );
    }