---
title: "Terminate a detached job. Aborts the server-side tracking task and sends SIGTERM (or SIGKILL if `force=true`) to any matching processes inside the sandbox container. Returns 204 on success; 404 if the sandbox or job is unknown."
method: POST
path: "/v1/sandboxes/{id}/jobs/{job_id}/kill"
tags: ["Sandboxes"]
---

# Terminate a detached job. Aborts the server-side tracking task and sends SIGTERM (or SIGKILL if \`force=true\`) to any matching processes inside the sandbox container. Returns 204 on success; 404 if the sandbox or job is unknown.

`POST /v1/sandboxes/{id}/jobs/{job_id}/kill`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/v1/sandboxes/{id}/jobs/{job_id}/kill`
- Auth: HTTP bearer

## Path parameters

- `id` string, required
- `job_id` string, required

## Request body

- KillJobBody
  - `force` boolean: When true, sends SIGKILL immediately. Defaults to SIGTERM so the process gets a chance to flush (mirrors `Command.kill()` in `@vercel/sandbox`, which also accepts a signal override).

## Response `204`

Job killed

## Other responses

- `404`: Sandbox or job not found

## Changes

- **2026-04-25** `774be20905f2`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/v1/sandboxes/:id/jobs/:job_id/kill/post.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
