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

@param $endpointId
@throws PlivoValidationException
Delete an endpoint