phi.run_admin.delete
Only an organization admin can use this.
python
phi.run_admin.delete(run_ids=run_ids)Returns RunDeleteResult.
Parameters
| Name | Type | Default |
|---|---|---|
| run_idsrequired | Sequence[str | uuid.UUID] | |
| dry_runoptional | bool | False |
RunDeleteResult fields and schemaShowHide
Fields
| Name | Type |
|---|---|
| affected_run_idsrequired | (string)[] |
| dry_runrequired | boolean |
JSON schema
{
"type": "object",
"required": [
"affected_run_ids",
"dry_run"
],
"properties": {
"affected_run_ids": {
"type": "array",
"items": {
"type": "string",
"format": "uuid"
}
},
"dry_run": {
"type": "boolean"
}
}
}phi.run_admin.restore
Only an organization admin can use this.
python
phi.run_admin.restore(run_ids=run_ids)Returns RunRestoreResult.
Parameters
| Name | Type |
|---|---|
| run_idsrequired | Sequence[str | uuid.UUID] |
RunRestoreResult fields and schemaShowHide
Fields
| Name | Type |
|---|---|
| affected_run_idsrequired | (string)[] |
JSON schema
{
"type": "object",
"required": [
"affected_run_ids"
],
"properties": {
"affected_run_ids": {
"type": "array",
"items": {
"type": "string",
"format": "uuid"
}
}
}
}From the installed client, phi 0.4.2, 2026-11-23.