Skip to content

Zoho: Delete records from a specified module

Zoho record.deleteRecords: arguments, response, policy and SDK examples.

← Record operations · Get started

Operation zoho.deleterecords

Provider route: DELETE /crm/v8/{module}. Alter supplies the connection’s credentials and routing.

Install @alter-ai/sdk @alter-ai/zoho with npm, or alter-sdk-zoho with pip. Supply your connected customer’s grant ID and the arguments described below.

import { App } from "@alter-ai/sdk";
import { ZohoIntegration } from "@alter-ai/zoho";
async function execute(input: Parameters<ZohoIntegration["record"]["deleteRecords"]>[0]) {
const app = new App({ apiKey: process.env.ALTER_API_KEY! });
try {
const provider = new ZohoIntegration(app, { grantId: process.env.PROVIDER_GRANT_ID! });
const call = await provider.record.deleteRecords(input);
const result = await call.wait();
return result.bodyJson();
} finally {
await app.close();
}
}
import os
from alter_sdk import App
from alter_sdk_zoho import ZohoIntegration
async def execute(arguments):
async with App(api_key=os.environ["ALTER_API_KEY"]) as app:
provider = ZohoIntegration(app, {"grant_id": os.environ["PROVIDER_GRANT_ID"]})
call = await provider.record.delete_records(arguments)
result = await call.wait()
return result.body_json()
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
pathobjectRequired within parentAdditional keys: not allowed
path.modulestringRequired within parentMaximum length: 25
queryobjectOptionalAdditional keys: not allowed
query.idsarrayOptionalMinimum items: 1
Unique items: true
query.ids[]stringEach itemUnique record ID in int64 string format.
Format: int64

Response media type: application/json. The table describes the pinned successful response. Referenced models link to their complete fields.

FieldTypePresenceDescription and constraints
$JSONRoot
$ (anyOf 1)ModelAlternativeExpand Delete records from a specified module — response body — data — Record Delete Success Response
$ (anyOf 2)ModelAlternativeExpand Delete records from a specified module — response body — data — Record Delete Multi Status Response

Referenced models: Delete records from a specified module — response body — data — Record Delete Multi Status Response, Delete records from a specified module — response body — data — Record Delete Success Response

Delete records from a specified module — response body — data — Record Delete Multi Status Response
FieldTypePresenceDescription and constraints
$objectRootRepresents the response schema for the record delete multi status operation.
Additional keys: not allowed
dataarrayRequired within parentRepresents the data value.
Maximum items: 100
Minimum items: 2
data[]JSONEach itemRepresents a single item in the RecordDeleteMultiStatusResponse array.
data[] (anyOf 1)objectAlternativeRepresents the response schema for the record delete multi status operation.
Additional keys: not allowed
data[] (anyOf 1).codestringRequired within parentRepresents the data value.
Known values: SUCCESS
data[] (anyOf 1).detailsobjectRequired within parentRepresents the data value.
Additional keys: not allowed
data[] (anyOf 1).details.idstringRequired within parentRepresents the data value.
Format: int64
data[] (anyOf 1).messagestringRequired within parentRepresents the data value.
data[] (anyOf 1).statusstringRequired within parentRepresents the data value.
Known values: success
data[] (anyOf 2)ModelAlternativeExpand Delete records from a specified module — response body — data / data / item / code: INVALID DATA, status: error
data[] (anyOf 3)ModelAlternativeExpand Delete records from a specified module — response body — data / data / item / code: REQUIRED PARAM MISSING, status: error
data (allOf 1)JSONAll variants applyRepresents the response schema for the record delete multi status operation.
data (allOf 2)JSONAll variants applyRepresents the response schema for the record delete multi status operation.

Referenced models: Delete records from a specified module — response body — data / data / item / code: INVALID DATA, status: error, Delete records from a specified module — response body — data / data / item / code: REQUIRED PARAM MISSING, status: error

Delete records from a specified module — response body — data — Record Delete Success Response
FieldTypePresenceDescription and constraints
$objectRootRepresents the response schema for the record delete success operation.
Additional keys: not allowed
dataarrayRequired within parentRepresents the data value.
Maximum items: 100
Minimum items: 1
data[]objectEach itemRepresents a single item in the RecordDeleteSuccessResponse array.
Additional keys: not allowed
data[].codestringRequired within parentRepresents the data value.
Known values: SUCCESS
data[].detailsobjectRequired within parentRepresents the data value.
Additional keys: not allowed
data[].details.idstringRequired within parentRepresents the data value.
Format: int64
data[].messagestringRequired within parentRepresents the data value.
Known values: record deleted
data[].statusstringRequired within parentRepresents the data value.
Known values: success
Delete records from a specified module — response body — data / data / item / code: INVALID DATA, status: error
FieldTypePresenceDescription and constraints
$objectRootRepresents a single record delete invalid data result item.
Additional keys: not allowed
codestringRequired within parentRepresents the error code identifying the type of failure.
Known values: INVALID_DATA
detailsobjectRequired within parentContains additional context about the error.
Additional keys: not allowed
details.idstringRequired within parentContains additional context about the error.
Format: int64
Maximum length: 20
messagestringRequired within parentRepresents the error message describing why the operation failed.
statusstringRequired within parentIndicates the overall result status of the request.
Known values: error
Delete records from a specified module — response body — data / data / item / code: REQUIRED PARAM MISSING, status: error
FieldTypePresenceDescription and constraints
$objectRootRepresents a single record delete required parameter missing result item.
Additional keys: not allowed
codestringRequired within parentRepresents the error code identifying the type of failure.
Known values: REQUIRED_PARAM_MISSING
detailsobjectRequired within parentContains additional context about the error.
Additional keys: not allowed
details.param_namestringRequired within parentContains additional context about the error.
Maximum length: 255
messagestringRequired within parentRepresents the error message describing why the operation failed.
statusstringRequired within parentIndicates the overall result status of the request.
Known values: error

SDK function policy ID: zoho.deleterecords. Catalog operation: deleteRecords. Rules can name either ID; function rules distinguish managed calls and conservatively cover raw calls sharing the route. Existing grant permissions and policy rules apply. wait() returns an immediate result or waits for a required approval; it never approves the request itself. Persist the approval ID to resume after a restart.

Provider errors retain their response; JSON decoding raises ProviderAPIError for provider failures. ManagedOperationError identifies contract/input/retention errors. See error handling and provider-specific behavior. Sensitive input may be refused before approval storage. A decoding error never resubmits a write.

Official provider source

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand which product and documentation features are useful.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

You can change these choices at any time from Cookie settings.