Dyno Phi
ContentsPython SDKShow

phi.run_admin

Delete or restore runs as an organization admin.

phi.run_admin.delete

Only an organization admin can use this.

python
phi.run_admin.delete(run_ids=run_ids)

Returns RunDeleteResult.

Parameters

NameTypeDefault
run_idsrequiredSequence[str | uuid.UUID]
dry_runoptionalboolFalse
RunDeleteResult fields and schemaShow

Fields

NameType
affected_run_idsrequired(string)[]
dry_runrequiredboolean
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

NameType
run_idsrequiredSequence[str | uuid.UUID]
RunRestoreResult fields and schemaShow

Fields

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