public function delete($addressId)
    {
        if (ArrayOperations::checkNull([$addressId])) {
            throw
            new PlivoValidationException(
                'address id is mandatory');
        }

        $uri = $this->uri . $addressId . '/';
        
        $response = $this->client->delete(
            $uri,
            []
        );

        return json_encode($response->getContent(), JSON_FORCE_OBJECT);
    }
public function delete($addressId)
    {
        if (ArrayOperations::checkNull([$addressId])) {
            throw
            new PlivoValidationException(
                'address id is mandatory');
        }

        $uri = $this->uri . $addressId . '/';
        
        $response = $this->client->delete(
            $uri,
            []
        );

        return json_encode($response->getContent(), JSON_FORCE_OBJECT);
    }
public function delete ( $ addressId ) { if ( ArrayOperations :: checkNull ( [ $ addressId ] ) ) { throw new PlivoValidationException ( 'address id is mandatory' ) ; } $ uri = $ this -> uri . $ addressId . '/' ; $ response = $ this -> client -> delete ( $ uri , [ ] ) ; return json_encode ( $ response -> getContent ( ) , JSON_FORCE_OBJECT ) ; }
Delete an address

@param $addressId
@throws PlivoValidationException
Delete an address