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

# Purge Acknowledged • AI Agent SDK

> purge_acknowledged: Remove old acknowledged messages from the store.

# purge\_acknowledged

<div className="flex items-center gap-2">
  <Badge color="blue">Async</Badge>
  <Badge color="purple">Method</Badge>
</div>

> This is a method of the [**DeliveryGuaranteeProtocol**](../classes/DeliveryGuaranteeProtocol) class in the [**protocols**](../modules/protocols) module.

Remove old acknowledged messages from the store.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
async def purge_acknowledged(max_age_seconds: int) -> int
```

## Parameters

<ParamField query="max_age_seconds" type="int" required={false} default="86400">
  No description available.
</ParamField>

### Returns

<ResponseField name="Returns" type="int">
  Number of messages purged
</ResponseField>

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/gateway/protocols.py#L1439">
  `praisonaiagents/gateway/protocols.py` at line 1439
</Card>

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="Knowledge Concept" icon="book" href="/docs/docs/concepts/knowledge" />

  <Card title="Knowledge Overview" icon="database" href="/docs/docs/knowledge/overview" />

  <Card title="Knowledge Configuration" icon="gear" href="/docs/docs/configuration/knowledge-config" />

  <Card title="Chat with PDF" icon="file-pdf" href="/docs/docs/knowledge/chat-with-pdf" />
</CardGroup>
