---
title: "Request command cancellation"
method: DELETE
path: "/v1/sessions/{id}/executions/{executionId}"
---

# Request command cancellation

`DELETE /v1/sessions/{id}/executions/{executionId}`

## Request

- Base URL: `https://assemble-vms-api.fly.dev`
- URL: `https://assemble-vms-api.fly.dev/v1/sessions/{id}/executions/{executionId}`
- Auth: HTTP bearer

Requests cancellation. The response is not confirmation that the process has stopped; follow events or inspect state until terminal.

## Response `202`

Cancellation requested; current execution state.

- Execution
  - `id` string, uuid, required
  - `sessionId` string, uuid, required
  - `state` 'running' | 'completed' | 'failed' | 'cancelled' | 'timed_out' | 'interrupted', required
  - `exitCode` integer, nullable, required
  - `createdAt` string, date-time, required
  - `finishedAt` string, date-time, nullable, required

## Other responses

- `default`: Structured API error. HTTP 400 invalid request, 401 authentication, 404 missing resource, 409 conflict, 413 size limit, 429 quota, or 503 unavailable.

---

[API](https://skmtc.dev/assemble/apis/assemble-vms-api.md) - [All operations](https://skmtc.dev/assemble/apis/assemble-vms-api/llms.txt) - [OpenAPI document](https://skmtc.dev/assemble/apis/assemble-vms-api/revisions/93f55a2e3de3?raw)
