Last updated: 2024-06-07
DelContactSubObjs Method
In this topic:
Overview
The DelContactSubObjs method deletes all phone number, address and e-mail/web address entries from a contact record.
The DelContactSubObjs method is invoked using the method operation.
Parameters
| Parameter Name | Type | Required? | Description |
|---|---|---|---|
ContactID | String | Yes | This is the object ID of the contact record. |
Example
The following example deletes all phone numbers, addresses and e-mail/web addresses from a contact:
XML
<request version='1.0'>
<header>...</header>
<method>
<DelContactSubObjs>
<ContactID>Contact.1.18</ContactID>
</DelContactSubObjs>
</method>
</request>The response displays a count of the number of each record type deleted:
XML
<response version="1.0">
<header>
<sessionClosed/>
</header>
<method>
<DelContactSubObjs>
<DeletionResult Addresses="2" Phones="2" Webaddresses="0"/>
</DelContactSubObjs>
</method>
<_status>OK</_status>
<_systime>2015-10-12T18:32:35</_systime>
<!--Cost 69 mill seconds.-->
</response>