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

# Clear messages

> Clears any offline messages available for the account from the server.

## Overview

Clears any offline messages available for the account from the server.

## HTTP request

`POST /Agent/Xmpp/ClearMessages`

## Authentication

Requires a valid JWT bearer token.

## Request (JSON)

```json theme={null}
{
}
```

## Response (JSON)

```json theme={null}
{
	"count": Required(Int(PCount))
}
```

## Response parameters

| Parameter | Description                 |
| --------- | --------------------------- |
| PCount    | Number of messages deleted. |

## Notes

This endpoint uses the request schema notation described in [Pattern matching](/guides/pattern-matching).
