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

# Delete Messages from Conversation

> Delete SMS conversations by their IDs.

<Info>
  **Enterprise Feature** - SMS is only available on Enterprise plans. Contact your Bland representative for access.
</Info>

### Headers

<ParamField header="authorization" type="string" required>
  Your API key for authentication.
</ParamField>

### Path Parameters

<ParamField path="id" type="string" required>
  The ID of the conversation deleted.
</ParamField>

### Body Parameters

<ParamField body="message_ids" type="string[]" required>
  A list of message ID integers to mark as deleted. Must not be empty.
</ParamField>

### Response

<ResponseField name="data" type="object">
  Object containing confirmation and the count of messages deleted.
</ResponseField>

<ResponseField name="data.message" type="string">
  A success message indicating how many messages were marked as deleted.
</ResponseField>

<ResponseField name="data.deleted_count" type="number">
  The number of messages successfully marked as deleted.
</ResponseField>

<ResponseField name="errors" type="null|array">
  `null` on success, or a list of error objects on failure.
</ResponseField>

<ResponseExample>
  ```json Response theme={null}
  {
    "data": {
      "message": "2 messages marked as deleted",
      "deleted_count": 2
    },
    "errors": null
  }
  ```
</ResponseExample>

***

Docs for agents: [llms.txt](/llms.txt)
