---
title: "Kill an asynchronous execution currently running on a devbox"
method: POST
path: "/v1/devboxes/{devbox_id}/executions/{execution_id}/kill"
tags: ["Devbox", "Devbox-ShellTools"]
---

# Kill an asynchronous execution currently running on a devbox

`POST /v1/devboxes/{devbox_id}/executions/{execution_id}/kill`

Kill a previously launched asynchronous execution if it is still running by killing the launched process. Optionally kill the entire process group.

## Path parameters

- `devbox_id` string, required
- `execution_id` string, required

## Request body

- DevboxKillExecutionRequest
  - `kill_process_group` boolean, nullable — Whether to kill the entire process group (default: false). If true, kills all processes in the same process group as the target process.

## Response `200`

OK

- DevboxAsyncExecutionDetailView
  - `devbox_id` string, required — Devbox id where command was executed.
  - `execution_id` string, required — Ephemeral id of the execution in progress.
  - `status` 'queued' | 'running' | 'completed', required
  - `shell_name` string, nullable — Shell name.
  - `stdout` string, nullable — Standard out generated by command. This field will remain unset until the execution has completed.
  - `stderr` string, nullable — Standard error generated by command. This field will remain unset until the execution has completed.
  - `exit_status` integer, nullable — Exit code of command execution. This field will remain unset until the execution has completed.
  - `stdout_truncated` boolean, nullable — Indicates whether the stdout was truncated due to size limits.
  - `stderr_truncated` boolean, nullable — Indicates whether the stderr was truncated due to size limits.

## Other responses

- `404` — Devbox or Execution not found.

---

[API](https://skmtc.net/runloopai/apis/runloop-api.md) · [All operations](https://skmtc.net/runloopai/apis/runloop-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/runloopai/runloop-api/versions/ef553a04de89/schema)
