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

<ParamField query="session" type="string" required>
  The session ID to clear messages from. This identifies the specific agent
  session.
</ParamField>

### Response

Returns confirmation of the clear messages operation.

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