Delete runs
delete_runsPermanently delete finished runs (up to 100), before their retention ends: each run's events, output, error and definition are deleted at once, and the run is no longer found (get_run, list_runs, a batch's runs). A run that has not finished is refused: cancel it first. Billing is unaffected: what a run cost stays charged. The files a run saved (its outputs) stay in the organization's files unless delete_files is true. Returns the ids deleted and, for any that were not, why.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"ids": "<ids>"
},
"name": "delete_runs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | Yes | The runs' ids. | |
| delete_files | No | Also delete the files these runs saved (default false: they stay). |