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
def delete_run(run_id: str) -> NoneParameters
ParamField
strNo description available.
Uses
execute
Used By
Source
View on GitHubpraisonaiagents/runtime/journal.py at line 273