> ## Documentation Index
> Fetch the complete documentation index at: https://deepline.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Zoho CRM: README

> Mass delete with record ids and custom view id. Includes SDK V2 guidance, input constraints, response fields, and Deepline credit cost.

Mass delete with record ids and custom view id.

<Info>
  Tool ID: `zoho_crm_mass_delete_cvid_mass_delete`
</Info>

## Run this action

Use the TypeScript SDK for a single call. Put `ctx.tools.execute(...)` inside a Play when the call should be durable, scheduled, or run across a CSV.

```ts theme={null}
import { Deepline } from 'deepline';

const deepline = await Deepline.connect();
const result = await deepline.tools.execute(
  'zoho_crm_mass_delete_cvid_mass_delete',
  {
    "module": "Leads"
  },
);

console.log(result.toolResponse.raw);
```

### CLI

```bash theme={null}
deepline tools execute zoho_crm_mass_delete_cvid_mass_delete --input '{
  "module": "Leads"
}' --json
```

## Example response

The static output schema is not detailed enough to generate a reliable example. Use `deepline tools get zoho_crm_mass_delete_cvid_mass_delete --json` for the complete live contract.

## Input reference

Request body containing **either** record IDs to delete **or** custom view ID with optional territory filter. Maximum 500 IDs per request.

| Name                | Type                                                                                                                                                                                                                                                                                   | Required | Default | Details                                                                                                                                                                                                                                                                                                                                                                    |
| ------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- | ------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `payload.module`    | `"Leads" \| "Accounts" \| "Contacts" \| "Deals" \| "Campaigns" \| "Tasks" \| "Calls" \| "Meetings" \| "Cases" \| "Solutions" \| "Products" \| "Vendors" \| "Price_Books" \| "Quotes" \| "Sales_Orders" \| "Purchase_Orders" \| "Invoices" \| "Custom" \| "Services" \| "Appointments"` | Yes      | —       | Specifies the CRM module for the mass delete operation. Note: Module names are case-sensitive. Allowed: `Leads`, `Accounts`, `Contacts`, `Deals`, `Campaigns`, `Tasks`, `Calls`, `Meetings`, `Cases`, `Solutions`, `Products`, `Vendors`, `Price_Books`, `Quotes`, `Sales_Orders`, `Purchase_Orders`, `Invoices`, `Custom`, `Services`, `Appointments`. Minimum length: 1. |
| `payload.ids`       | `array`                                                                                                                                                                                                                                                                                | No       | —       | Array of record IDs to delete. Mutually exclusive with `cvid`. Minimum items: 1. Maximum items: 500.                                                                                                                                                                                                                                                                       |
| `payload.cvid`      | `string`                                                                                                                                                                                                                                                                               | No       | —       | Custom view ID. Mutually exclusive with `ids`. Format: `string`. Pattern: `^[0-9]+$`.                                                                                                                                                                                                                                                                                      |
| `payload.territory` | `object`                                                                                                                                                                                                                                                                               | No       | —       | Territory filter for the delete operation (optional, only valid with `cvid`).                                                                                                                                                                                                                                                                                              |

<details>
  <summary>Show raw input schema</summary>

  ### Input JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Request body containing **either** record IDs to delete **or** custom view ID with optional territory filter. Maximum 500 IDs per request.",
    "properties": {
      "module": {
        "type": "string",
        "description": "Specifies the CRM module for the mass delete operation. Note: Module names are case-sensitive.",
        "minLength": 1,
        "enum": [
          "Leads",
          "Accounts",
          "Contacts",
          "Deals",
          "Campaigns",
          "Tasks",
          "Calls",
          "Meetings",
          "Cases",
          "Solutions",
          "Products",
          "Vendors",
          "Price_Books",
          "Quotes",
          "Sales_Orders",
          "Purchase_Orders",
          "Invoices",
          "Custom",
          "Services",
          "Appointments"
        ]
      },
      "ids": {
        "type": "array",
        "description": "Array of record IDs to delete. Mutually exclusive with `cvid`.",
        "minItems": 1,
        "maxItems": 500,
        "items": {
          "type": "string",
          "description": "Record ID",
          "pattern": "^[0-9]+$",
          "format": "string"
        }
      },
      "cvid": {
        "type": "string",
        "description": "Custom view ID. Mutually exclusive with `ids`.",
        "pattern": "^[0-9]+$",
        "format": "string"
      },
      "territory": {
        "type": "object",
        "description": "Territory filter for the delete operation (optional, only valid with `cvid`).",
        "properties": {
          "id": {
            "type": "string",
            "description": "Territory ID",
            "pattern": "^[0-9]+$",
            "format": "string"
          },
          "include_child": {
            "type": "boolean",
            "description": "Whether to include child territories."
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "module"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name               | Type     | Required | Default | Details                                                                                                                 |
| ------------------ | -------- | -------- | ------- | ----------------------------------------------------------------------------------------------------------------------- |
| `result.data`      | `object` | Yes      | —       | Mass delete success response                                                                                            |
| `result.data.data` | `array`  | Yes      | —       | Array of success responses (synchronous record deletions or batch job scheduling) Minimum items: 1. Maximum items: 500. |
| `result.meta`      | `object` | No       | —       | Additional response metadata (status, paging).                                                                          |

<details>
  <summary>Show raw output schema</summary>

  ### Output JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Standard tool result payload.",
    "properties": {
      "data": {
        "type": "object",
        "description": "Mass delete success response",
        "properties": {
          "data": {
            "type": "array",
            "description": "Array of success responses (synchronous record deletions or batch job scheduling)",
            "minItems": 1,
            "maxItems": 500,
            "items": {
              "type": "object",
              "additionalProperties": true
            }
          }
        },
        "required": [
          "data"
        ],
        "additionalProperties": false
      },
      "meta": {
        "type": "object",
        "description": "Additional response metadata (status, paging).",
        "additionalProperties": true
      }
    },
    "required": [
      "data"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Deepline cost

* Pricing model: `fixed` (per call).
* Estimated Deepline credits: `0` per pricing unit.
* Provider-native pricing may still exist outside Deepline credit billing.

## Related documentation

* [SDK V2 quickstart](/docs/sdk-v2/quickstart)
* [SDK reference](/docs/sdk-v2/sdk-reference)
* [Run tools across a CSV](/docs/sdk-v2/batch-csv)
