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

# Remove System Messages • AI Agent SDK

> remove_system_messages: Remove all system messages from the history.

# remove\_system\_messages

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

> This is a method of the [**handoff\_filters**](../classes/handoff_filters) class in the [**handoff**](../modules/handoff) module.

Remove all system messages from the history.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def remove_system_messages(data: HandoffInputData) -> HandoffInputData
```

## Parameters

<ParamField query="data" type="HandoffInputData" required={true}>
  No description available.
</ParamField>

### Returns

<ResponseField name="Returns" type="HandoffInputData">
  The result of the operation.
</ResponseField>

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/agent/handoff.py#L1219">
  `praisonaiagents/agent/handoff.py` at line 1219
</Card>
