---
title: "Terminate a session"
method: DELETE
path: "/sessions/{session_id}"
tags: ["Sessions"]
---

# Terminate a session

`DELETE /sessions/{session_id}`

Terminate an active Devin session. This sends a stop signal to the session,
causing it to gracefully shut down. Once terminated, the session cannot be resumed.

Note: Sessions that have already exited cannot be terminated again.

## Path parameters

- `session_id` string, required

## Response `200`

Session terminated successfully

- object
  - `detail` string

## Other responses

- `400` — Bad Request - Session already exited
- `401` — Unauthorized - Invalid or missing API key
- `403` — Forbidden - Only session owner can terminate
- `404` — Resource not found
- `500` — Internal Server Error

---

[API](https://skmtc.dev/devin/apis/devin-external-api.md) · [All operations](https://skmtc.dev/devin/apis/devin-external-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/devin/devin-external-api/revisions/bb0fabac5cbe/schema)
