---
title: "Delete execution"
method: DELETE
path: "/v1/machines/{machine_id}/executions/{execution_id}"
tags: ["Machine Lifecycle", "Machine Executions"]
---

# Delete execution

`DELETE /v1/machines/{machine_id}/executions/{execution_id}`

## Path parameters

- `machine_id` string, required
- `execution_id` string, required

## Headers

- `X-Dedalus-Org-Id` string

## Response `200`

OK

- ExecutionResponse
  - `artifacts` ArtifactRef[], nullable
    - `artifact_id` string, required
    - `name` string, required
  - `command` string[], nullable, required
  - `completed_at` string, date-time
  - `created_at` string, date-time, required
  - `cwd` string
  - `env_keys` string[], nullable
  - `error_code` string
  - `error_message` string
  - `execution_id` string, required
  - `exit_code` integer
  - `expires_at` string, date-time
  - `machine_id` string, required
  - `retry_after_ms` integer
  - `signal` integer
  - `started_at` string, date-time
  - `status` 'wake_in_progress' | 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelled' | 'expired', required
  - `stderr_bytes` integer
  - `stderr_truncated` boolean
  - `stdout_bytes` integer
  - `stdout_truncated` boolean

## Other responses

- `401` — Authentication required
- `403` — Forbidden
- `429` — Rate limited
- `503` — Dependency unavailable
- `default` — Error

## Changes

- **2026-05-12** `c756c361d33d` — 4 breaking, 2 warning
  - for the `path` request parameter `execution_id`, the minLength was increased from `0` to `1`
  - for the `path` request parameter `machine_id`, the minLength was increased from `0` to `4`
  - added the pattern `^[A-Za-z0-9]([A-Za-z0-9._-]*[A-Za-z0-9])?$` to the `path` request parameter `execution_id`
  - added the pattern `^dm-[a-z0-9]([a-z0-9-]*[a-z0-9])?$` to the `path` request parameter `machine_id`
  - …2 more
- **2026-04-01** `6a258bad8212` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/dedalus-labs/apis/dedalus-cloud-services-api/changes/v1/machines/:machine_id/executions/:execution_id/delete.md)

---

[API](https://skmtc.dev/dedalus-labs/apis/dedalus-cloud-services-api.md) · [All operations](https://skmtc.dev/dedalus-labs/apis/dedalus-cloud-services-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/dedalus-labs/dedalus-cloud-services-api/revisions/e76f392b92b7/schema)
