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

# Delete Message

Deletes a specific message from a thread.

> [!WARNING]
>
> Deleting messages may affect conversation context for future agent responses.

**threadId** `string` *required*

The unique thread identifier (UUID)

**messageId** `string` *required*

The unique message identifier

**success** `boolean` *required*

Whether the deletion was successful

```bash cURL theme={null}
curl -X DELETE https://your-worker.workers.dev/api/threads/550e8400-e29b-41d4-a716-446655440000/messages/msg_001
```

```typescript JavaScript theme={null}
const response = await fetch(
  'https://your-worker.workers.dev/api/threads/550e8400-e29b-41d4-a716-446655440000/messages/msg_001',
  { method: 'DELETE' }
);
const result = await response.json();
```

```json 200 theme={null}
{
  "success": true
}
```

```json 404 theme={null}
{
  "error": "Message not found"
}
```


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