> ## 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: Attachments Delete Attachment

> Delete an attachment from a Zoho CRM record by its ID. Includes SDK V2 guidance, input constraints, response fields, and Deepline credit cost.

Delete an attachment from a Zoho CRM record by its ID.

> [!NOTE]
>
> Tool ID: `zoho_crm_attachments_delete_attachment`

## Run this action

Use the TypeScript SDK for one call. Use `ctx.tools.execute(...)` inside a Play for durable calls, scheduled calls, or CSV processing.

```ts theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
import { Deepline } from 'deepline';

const deepline = await Deepline.connect();
const result = await deepline.tools.execute(
  'zoho_crm_attachments_delete_attachment',
  {
    "recordId": "record_123",
    "moduleApiName": "Example",
    "id": "id_123"
  },
);

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

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline tools execute zoho_crm_attachments_delete_attachment --input '{
  "recordId": "record_123",
  "moduleApiName": "Example",
  "id": "id_123"
}' --json
```

## Example response

The static output schema lacks the details for a reliable example. Use `deepline describe zoho_crm_attachments_delete_attachment --json` for the complete live contract.

## Input reference

Delete a link attachment associated with a specific record in a module.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.recordId` | `string` | Yes | — | The unique identifier of the record Maximum length: 64. |
| `payload.moduleApiName` | `string` | Yes | — | The API name of the module Maximum length: 64. |
| `payload.id` | `string` | Yes | — | The unique identifier of the attachment Maximum length: 64. |

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

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Delete a link attachment associated with a specific record in a module.",
    "properties": {
      "recordId": {
        "type": "string",
        "description": "The unique identifier of the record",
        "maxLength": 64
      },
      "moduleApiName": {
        "type": "string",
        "description": "The API name of the module",
        "maxLength": 64
      },
      "id": {
        "type": "string",
        "description": "The unique identifier of the attachment",
        "maxLength": 64
      }
    },
    "required": [
      "recordId",
      "moduleApiName",
      "id"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `object` | Yes | — | Successful deletion response |
| `result.data.data` | `array` | Yes | — | Array of deletion results Maximum items: 100. |
| `result.data.data[].code` | `"SUCCESS"` | Yes | — | Response code indicating success Allowed: `SUCCESS`. |
| `result.data.data[].details` | `object` | Yes | — | Details of the deleted attachment |
| `result.data.data[].details.id` | `string` | Yes | — | ID of the deleted attachment Maximum length: 50. Pattern: `^[0-9]+$`. |
| `result.data.data[].message` | `"record deleted"` | Yes | — | Success message Allowed: `record deleted`. |
| `result.data.data[].status` | `"success"` | Yes | — | Operation status Allowed: `success`. |
| `result.meta` | `object` | No | — | Additional response metadata (status, paging). |

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

  ### Output JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Standard tool result payload.",
    "properties": {
      "data": {
        "type": "object",
        "description": "Successful deletion response",
        "properties": {
          "data": {
            "type": "array",
            "description": "Array of deletion results",
            "maxItems": 100,
            "items": {
              "type": "object",
              "description": "Deletion status details",
              "properties": {
                "code": {
                  "type": "string",
                  "description": "Response code indicating success",
                  "enum": [
                    "SUCCESS"
                  ]
                },
                "details": {
                  "type": "object",
                  "description": "Details of the deleted attachment",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "ID of the deleted attachment",
                      "maxLength": 50,
                      "pattern": "^[0-9]+$"
                    }
                  },
                  "required": [
                    "id"
                  ],
                  "additionalProperties": false
                },
                "message": {
                  "type": "string",
                  "description": "Success message",
                  "enum": [
                    "record deleted"
                  ]
                },
                "status": {
                  "type": "string",
                  "description": "Operation status",
                  "enum": [
                    "success"
                  ]
                }
              },
              "required": [
                "code",
                "details",
                "message",
                "status"
              ],
              "additionalProperties": false
            }
          }
        },
        "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](https://deepline.com/docs/sdk-v2/quickstart.md)
* [SDK reference](https://deepline.com/docs/sdk-v2/sdk-reference.md)
* [Run tools across a CSV](https://deepline.com/docs/sdk-v2/batch-csv.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.