Model/Apiconnector/Client.php
public function deleteContact($contactId)
    {
        if ($contactId) {
            $url = $this->getApiEndpoint() . self::REST_CONTACTS . $contactId;
            $this->setUrl($url)
                ->setVerb('DELETE');

            $response = $this->execute();

            if (isset($response->message)) {
                $message = ' url : ' . $url . ', ' . $response->message;
                $this->helper->debug('deleteContact', [$message]);
            }

            return $response;
        }
    }
public function deleteContact($contactId)
    {
        if ($contactId) {
            $url = $this->getApiEndpoint() . self::REST_CONTACTS . $contactId;
            $this->setUrl($url)
                ->setVerb('DELETE');

            $response = $this->execute();

            if (isset($response->message)) {
                $message = ' url : ' . $url . ', ' . $response->message;
                $this->helper->debug('deleteContact', [$message]);
            }

            return $response;
        }
    }
public function deleteContact ( $ contactId ) { if ( $ contactId ) { $ url = $ this -> getApiEndpoint ( ) . self :: REST_CONTACTS . $ contactId ; $ this -> setUrl ( $ url ) -> setVerb ( 'DELETE' ) ; $ response = $ this -> execute ( ) ; if ( isset ( $ response -> message ) ) { $ message = ' url : ' . $ url . ', ' . $ response -> message ; $ this -> helper -> debug ( 'deleteContact' , [ $ message ] ) ; } return $ response ; } }
Deletes a contact.

@param int $contactId

@return null
@throws \Exception
Deletes a contact .