Contractors.es icon

Contractors.es

Interact with Contractors.es API

Actions995

Task Api → Delete Api Crm Tasks Batch

AI-generated

Summary

Deletes multiple CRM tasks in bulk using the Contractors.es API.

Inputs

  • force (required) — If set to true, enforces the deletion of tasks that might otherwise be protected or soft-deleted. Default is true.
  • resources — A JSON array of task IDs or resource objects to delete. Defaults to a single null item if left empty.
  • requestOptions — Collection of HTTP options including batching (items per batch and interval), SSL proxy settings, and timeout.

Output shape

A list of items representing the successfully deleted tasks.

Batches requests to prevent overwhelming the API (default 50 items per batch with 1000ms interval). Uses the 'force' parameter to override soft-delete protections.

Examples

Example 1: Delete a specific list of tasks by ID

Set 'resources' to a JSON array of task IDs (e.g., ['123', '456']). 'force' is enabled by default.

Example 2: Handle rate limits with batching

Configure 'requestOptions' > 'batching' to reduce 'batchSize' (e.g., 10) or increase 'batchInterval' (e.g., 2000ms).

Links

Discussion