DeleteContactsFromAddressBook

Deletes multiple contacts from an address book

This method deletes multiple contacts from a specified address book. This will run in the background, and for larger address books may take some minutes to fully delete.

You can check the deletion status using the Get bulk contact deletion progress call.

SOAP action: http://apiconnector.com/v2/ApiService/DeleteContactsFromAddressBook

πŸ“˜

Input and output parameters

The input and output parameters for this method are:

Input parameters

  • AddressBook Id - required; integer
  • Contact Id - required; array of integers
    • integer

Output parameters

  • DeleteContactsFromAddressBookResult
    • Id - GUID
    • Status - string ('NotAvailableInThisVersion', 'Started', 'Completed', 'Failed')

Example

using (var client = new ApiServiceClient())
{
	client.ClientCredentials.UserName.UserName = "username";
	client.ClientCredentials.UserName.Password = "password";

	var contactIds = new[] { 1, 2, 3 };
	var addressBookId = 1;
	client.DeleteContactsFromAddressBook(addressBookId, contactIds);
}