> ## 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.

> [!NOTE]
>
> **Enterprise Feature** - SMS is only available on Enterprise plans. Contact your Bland representative for access.

### Headers

**authorization** `string` *required*

Your API key for authentication.

### Path Parameters

**id** `string` *required*

The ID of the conversation deleted.

### Body Parameters

**message\_ids** `string[]` *required*

A list of message ID integers to mark as deleted. Must not be empty.

### Response

**data** `object`

Object containing confirmation and the count of messages deleted.

**data.message** `string`

A success message indicating how many messages were marked as deleted.

**data.deleted\_count** `number`

The number of messages successfully marked as deleted.

**errors** `null|array`

`null` on success, or a list of error objects on failure.

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

***

Docs for agents: [llms.txt](https://docs.bland.ai/llms.txt)


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