Delete run

http
DELETE /runs/{run_id}

Delete a run. Requires project.runs.admin; API keys also need delete scope.

Servers

JSON
[  {    "url": "https://api.veryfront.com"  }]

Authentication

JSON
[  {    "bearerAuth": []  },  {    "apiKeyAuth": []  }]
JSON
{  "bearerAuth": {    "type": "http",    "scheme": "bearer",    "bearerFormat": "JWT or API Key",    "description": "Use a JWT bearer token or a Veryfront API key in the `Authorization` header."  },  "apiKeyAuth": {    "type": "apiKey",    "in": "header",    "name": "X-API-Key",    "description": "Alternative API key header for `vf_<prefix>_<secret>` tokens."  }}

Parameters

NameLocationRequiredDescription
run_idpathYesRun to delete. Must be completed, failed or cancelled, with execution stopped, no direct children, and no active parent; otherwise deletion returns 409. Conversation-owned runs also require admin access on the conversation. Run-scoped credentials cannot delete runs. Deleting a run also deletes its events and owned input requests; referenced artifact files are retained.

Parameter contracts

JSON
[  {    "schema": {      "type": "string",      "format": "uuid",      "description": "Run to delete. Must be completed, failed or cancelled, with execution stopped, no direct children, and no active parent; otherwise deletion returns 409. Conversation-owned runs also require admin access on the conversation. Run-scoped credentials cannot delete runs. Deleting a run also deletes its events and owned input requests; referenced artifact files are retained."    },    "required": true,    "description": "Run to delete. Must be completed, failed or cancelled, with execution stopped, no direct children, and no active parent; otherwise deletion returns 409. Conversation-owned runs also require admin access on the conversation. Run-scoped credentials cannot delete runs. Deleting a run also deletes its events and owned input requests; referenced artifact files are retained.",    "example": "11111111-1111-4111-8111-111111111111",    "name": "run_id",    "in": "path"  }]

Responses

200

Run, its events, and owned input requests deleted; referenced artifact files are retained.

JSON
{  "description": "Run, its events, and owned input requests deleted; referenced artifact files are retained.",  "content": {    "application/json": {      "schema": {        "$ref": "#/components/schemas/OkResponse"      },      "examples": {        "deleted": {          "value": {            "ok": true          }        }      }    }  }}

400

Bad request

JSON
{  "description": "Bad request",  "content": {    "application/problem+json": {      "schema": {        "allOf": [          {            "$ref": "#/components/schemas/TargetRunProblem"          },          {            "properties": {              "status": {                "const": 400              }            }          }        ]      }    }  }}

401

Unauthorized

JSON
{  "description": "Unauthorized",  "content": {    "application/problem+json": {      "schema": {        "allOf": [          {            "$ref": "#/components/schemas/TargetRunProblem"          },          {            "properties": {              "status": {                "const": 401              }            }          }        ]      }    }  }}

403

Forbidden

JSON
{  "description": "Forbidden",  "content": {    "application/problem+json": {      "schema": {        "allOf": [          {            "$ref": "#/components/schemas/TargetRunProblem"          },          {            "properties": {              "status": {                "const": 403              }            }          }        ]      }    }  }}

404

Not found

JSON
{  "description": "Not found",  "content": {    "application/problem+json": {      "schema": {        "allOf": [          {            "$ref": "#/components/schemas/TargetRunProblem"          },          {            "properties": {              "status": {                "const": 404              }            }          }        ]      }    }  }}

409

Conflict

JSON
{  "description": "Conflict",  "content": {    "application/problem+json": {      "schema": {        "allOf": [          {            "$ref": "#/components/schemas/TargetRunProblem"          },          {            "properties": {              "status": {                "const": 409              }            }          }        ]      }    }  }}

429

Rate limit exceeded

JSON
{  "description": "Rate limit exceeded",  "headers": {    "Retry-After": {      "schema": {        "type": "integer",        "format": "int32",        "minimum": 1      }    }  },  "content": {    "application/problem+json": {      "schema": {        "allOf": [          {            "$ref": "#/components/schemas/TargetRunProblem"          },          {            "properties": {              "status": {                "const": 429              }            }          }        ]      }    }  }}

Referenced contracts

components/schemas/OkResponse

JSON
{  "type": "object",  "properties": {    "ok": {      "type": "boolean",      "enum": [        true      ]    }  },  "required": [    "ok"  ]}

components/schemas/TargetRunProblem

JSON
{  "type": "object",  "properties": {    "type": {      "type": "string",      "description": "Problem type URI reference."    },    "title": {      "type": "string"    },    "status": {      "type": "integer",      "minimum": 400,      "maximum": 599,      "format": "int64"    },    "code": {      "type": "string",      "minLength": 1,      "maxLength": 128    },    "cause": {      "type": "string",      "enum": [        "schedule_concurrency_forbidden",        "schedule_fire_in_progress",        "schedule_run_limit_reached"      ],      "description": "Schedule admission refusal."    },    "detail": {      "type": "string"    },    "instance": {      "type": "string"    },    "errors": {      "type": "array",      "items": {        "type": "object",        "properties": {          "field": {            "type": "string"          },          "message": {            "type": "string"          }        },        "required": [          "field",          "message"        ]      }    }  },  "required": [    "type",    "title",    "status",    "code"  ]}

Operation contract

JSON
{  "operationId": "deleteRun",  "tags": [    "execution/Runs/Runs"  ],  "summary": "Delete run",  "description": "Delete a run. Requires project.runs.admin; API keys also need delete scope.",  "parameters": [    {      "schema": {        "type": "string",        "format": "uuid",        "description": "Run to delete. Must be completed, failed or cancelled, with execution stopped, no direct children, and no active parent; otherwise deletion returns 409. Conversation-owned runs also require admin access on the conversation. Run-scoped credentials cannot delete runs. Deleting a run also deletes its events and owned input requests; referenced artifact files are retained."      },      "required": true,      "description": "Run to delete. Must be completed, failed or cancelled, with execution stopped, no direct children, and no active parent; otherwise deletion returns 409. Conversation-owned runs also require admin access on the conversation. Run-scoped credentials cannot delete runs. Deleting a run also deletes its events and owned input requests; referenced artifact files are retained.",      "example": "11111111-1111-4111-8111-111111111111",      "name": "run_id",      "in": "path"    }  ],  "responses": {    "200": {      "description": "Run, its events, and owned input requests deleted; referenced artifact files are retained.",      "content": {        "application/json": {          "schema": {            "$ref": "#/components/schemas/OkResponse"          },          "examples": {            "deleted": {              "value": {                "ok": true              }            }          }        }      }    },    "400": {      "description": "Bad request",      "content": {        "application/problem+json": {          "schema": {            "allOf": [              {                "$ref": "#/components/schemas/TargetRunProblem"              },              {                "properties": {                  "status": {                    "const": 400                  }                }              }            ]          }        }      }    },    "401": {      "description": "Unauthorized",      "content": {        "application/problem+json": {          "schema": {            "allOf": [              {                "$ref": "#/components/schemas/TargetRunProblem"              },              {                "properties": {                  "status": {                    "const": 401                  }                }              }            ]          }        }      }    },    "403": {      "description": "Forbidden",      "content": {        "application/problem+json": {          "schema": {            "allOf": [              {                "$ref": "#/components/schemas/TargetRunProblem"              },              {                "properties": {                  "status": {                    "const": 403                  }                }              }            ]          }        }      }    },    "404": {      "description": "Not found",      "content": {        "application/problem+json": {          "schema": {            "allOf": [              {                "$ref": "#/components/schemas/TargetRunProblem"              },              {                "properties": {                  "status": {                    "const": 404                  }                }              }            ]          }        }      }    },    "409": {      "description": "Conflict",      "content": {        "application/problem+json": {          "schema": {            "allOf": [              {                "$ref": "#/components/schemas/TargetRunProblem"              },              {                "properties": {                  "status": {                    "const": 409                  }                }              }            ]          }        }      }    },    "429": {      "description": "Rate limit exceeded",      "headers": {        "Retry-After": {          "schema": {            "type": "integer",            "format": "int32",            "minimum": 1          }        }      },      "content": {        "application/problem+json": {          "schema": {            "allOf": [              {                "$ref": "#/components/schemas/TargetRunProblem"              },              {                "properties": {                  "status": {                    "const": 429                  }                }              }            ]          }        }      }    }  },  "x-documentation-source-tag": "Run resource",  "x-canonical-documentation": {    "domain": "execution",    "resource": "Runs",    "subgroup": "Runs",    "name": "Delete run",    "description": "Delete a run. Requires project.runs.admin; API keys also need delete scope.",    "operationId": "deleteRun"  },  "x-mint": {    "href": "/cloud/rest/api-reference/execution-runs-runs/delete-run"  }}