Model/Apiconnector/Client.php
public function deleteAddressBookContact($addressBookId, $contactId)
    {
        //Only if there is a contact id and address book id
        if ($addressBookId && $contactId) {
            $url = $this->getApiEndpoint() . self::REST_ADDRESS_BOOKS . $addressBookId
                . '/contacts/' . $contactId;
            $this->setUrl($url)
                ->setVerb('DELETE');
            $this->execute();
            $this->helper->log(sprintf('Delete-contact %s from addressbook %s', $contactId, $addressBookId));
        }
    }
public function deleteAddressBookContact($addressBookId, $contactId)
    {
        //Only if there is a contact id and address book id
        if ($addressBookId && $contactId) {
            $url = $this->getApiEndpoint() . self::REST_ADDRESS_BOOKS . $addressBookId
                . '/contacts/' . $contactId;
            $this->setUrl($url)
                ->setVerb('DELETE');
            $this->execute();
            $this->helper->log(sprintf('Delete-contact %s from addressbook %s', $contactId, $addressBookId));
        }
    }
public function deleteAddressBookContact ( $ addressBookId , $ contactId ) { //Only if there is a contact id and address book id if ( $ addressBookId && $ contactId ) { $ url = $ this -> getApiEndpoint ( ) . self :: REST_ADDRESS_BOOKS . $ addressBookId . '/contacts/' . $ contactId ; $ this -> setUrl ( $ url ) -> setVerb ( 'DELETE' ) ; $ this -> execute ( ) ; $ this -> helper -> log ( sprintf ( 'Delete-contact %s from addressbook %s' , $ contactId , $ addressBookId ) ) ; } }
Deletes all contacts from a given address book.

@param string|int $addressBookId
@param string|int $contactId

@return null
Deletes all contacts from a given address book .