Delete Records Using External ID
Purpose
To delete the records in a module using external IDs.
Endpoints
Request Details
Request URL
{api-domain}/crm/v2/{module_api_name}
Header
Authorization: Zoho-oauthtoken 100xx.d92d4xxxxxxxxxxxxx15f52
X-EXTERNAL: {module_API_name}.{external_field_API_name}
Scope
scope=ZohoCRM.modules.all
(or)
scope=ZohoCRM.modules.{module_name}.{operation_type}
Possible module names
leads, deals, contacts, accounts, products, campaigns, and pricebooks
Possible operation types
ALL - Full access to the records
WRITE - Edit records in the module
DELETE - Delete records from the module
Deleting a record using an external ID
In this example, we will delete the record in the Contacts module with the external value extcontact3 in the external field "External_Contact_ID".
Sample Request
Sample Response
Copied
Deleting the records using the "ids" parameter
In this example, we have used the "ids" parameter with values as the values of the external field in the Contacts module.
Sample Request
Copied
Sample Response
Copied
Show full
Show less
Possible Errors
- INVALID_DATAHTTP 202
The value of the external field is invalid.
Resolution: Specify the correct external ID of the record.