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

# Clear Messages

> Clear all messages from the current agent session.

### Query Parameters

**session** `string` *required*

The session ID to clear messages from. This identifies the specific agent
session.

### Response

Returns confirmation of the clear messages operation.

```json theme={null}
{
  "success": true,
  "message": "Messages cleared"
}
```


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