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

# Batch delete contacts

> Delete multiple contacts from a contact list in a single atomic request

Deletes an array of contacts by their IDs from a contact list.

### Path parameters

<ParamField path="listId" type="string" required>
  The unique UUID of the contact list.
</ParamField>

### Body parameters

<ParamField body="contactIds" type="string[]" required>
  Array of contact UUID strings to delete (minimum 1, maximum 1,000).
</ParamField>

<CodeGroup>
  ```bash curl theme={null}
  curl -X POST https://api.agentic-os.com/api/v1/contact-lists/33333333-3333-3333-3333-333333333333/contacts/delete-batch \
    -H "Authorization: Bearer $AGENTIC_OS_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{
      "contactIds": [
        "99999999-8888-7777-6666-555555555555",
        "88888888-7777-6666-5555-444444444444"
      ]
    }'
  ```

  ```python Python theme={null}
  import requests

  response = requests.post(
      "https://api.agentic-os.com/api/v1/contact-lists/33333333-3333-3333-3333-333333333333/contacts/delete-batch",
      headers={
          "Authorization": f"Bearer {API_KEY}",
          "Content-Type": "application/json",
      },
      json={
          "contactIds": [
              "99999999-8888-7777-6666-555555555555",
              "88888888-7777-6666-5555-444444444444",
          ]
      },
  )
  print(response.json())
  ```

  ```javascript Node theme={null}
  const response = await fetch(
    "https://api.agentic-os.com/api/v1/contact-lists/33333333-3333-3333-3333-333333333333/contacts/delete-batch",
    {
      method: "POST",
      headers: {
        Authorization: `Bearer ${API_KEY}`,
        "Content-Type": "application/json",
      },
      body: JSON.stringify({
        contactIds: [
          "99999999-8888-7777-6666-555555555555",
          "88888888-7777-6666-5555-444444444444",
        ],
      }),
    },
  );
  const data = await response.json();
  console.log(data);
  ```
</CodeGroup>

### Response

```json theme={null}
{
  "deleted": 2
}
```
