Delete Run • AI Agent SDK

delete_run: Remove “run_id“ and all its journal events.

delete_run

Method

</div>

This is a method of the RunJournal class in the 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
def delete_run(run_id: str) -> None

Parameters

ParamField str

No description available.

Uses

  • execute

Used By

Source

View on GitHub

praisonaiagents/runtime/journal.py at line 273