Delete contact

				
					StructOperationResponse contactDelete(string idSession, string idContact)
			

Delete a contact.

REQUIRED


  • idSession string (32)
    Session ID.
  • idContact string (12)
    ID of the contact to delete.

An Object of type StructOperationResponse

  • Can’t be used on a contact linked to a domain or a service.
$clientSOAP = new SoapClient('https://URL.wsdl');

try {
    $idSession = $clientSOAP->sessionOpen('XX000', 'xxxxxxxx');
    $structOperationResponse = $clientSOAP->contactDelete($idSession, 'XX001');
    print_r($structOperationResponse);

} catch (SoapFault $fault) {
    echo 'Exception : ' . $fault->getMessage() . "\n";
}

if (isset($idSession)) {
    $clientSOAP->sessionClose($idSession);
}