Delete an execution
⚠️
Preview — this feature is being built; the design below is the spec.
DELETE https://app.syntic.ai/v1/agents/executions/{execution_id}Delete a run and its traces permanently. Needs an Administrator or Owner key. Bulk deletion stays in the Console.
For how this fits into a full workflow, see Executions.
Headers
| Header | Required | Value |
|---|---|---|
Authorization | Yes | Bearer <key>: a private inference key (sk_live_...). See Authentication. |
syntic-beta | Yes, while in preview | agents-2026-11-01. Without it the call fails with 400 beta_required. See Versioning. |
Path parameters
| Parameter | Type | Description |
|---|---|---|
execution_id | string | The run id, starting with exec_. |
Response
200 OK, Content-Type: application/json
{
"id": "exec_01JC7N0Q8S2U4W6Y8A0C",
"type": "agent_execution_deleted"
}Examples
curl -sS -X DELETE https://app.syntic.ai/v1/agents/executions/exec_01JC7N0Q8S2U4W6Y8A0C \
-H "Authorization: Bearer $SYNTIC_API_KEY" \
-H "syntic-beta: agents-2026-11-01"Errors
Errors use the error envelope and carry a request_id. Codes specific to this operation:
| Status | type | code | When |
|---|---|---|---|
| 400 | invalid_request_error | beta_required | The syntic-beta header is missing. |
| 403 | permission_error | role_required | The key’s creator is not an Administrator or Owner. |
| 404 | not_found_error | execution_not_found | No run with that id in this workspace. |
| 401 | authentication_error | invalid_api_key | The key is missing, unknown, revoked or expired. |
| 429 | rate_limit_error | rate_limited | Too many requests; wait for Retry-After. See Rate-limit headers. |
Related
Was this page helpful?