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

# clear • Rust AI Agent SDK

> clear: Clear all events.

# clear

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

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

Clear all events.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def clear(&mut self) -> ()
```

### Returns

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