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

# Delete Run • AI Agent SDK

> delete_run: Remove ``run_id`` and all its journal events.

# delete\_run

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

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

Remove `run_id` and all its journal events.

Used when replacing a run wholesale (e.g. a portable import with
`overwrite=True`) so the destination does not keep stale events that
would leave a replay index belonging to neither run.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def delete_run(run_id: str) -> None
```

## Parameters

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

## Uses

* `execute`

## Used By

* [`import_run`](../functions/import_run)

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/runtime/journal.py#L273">
  `praisonaiagents/runtime/journal.py` at line 273
</Card>
