---
title: "Delete a Session"
method: DELETE
path: "/v1/session/{session_id}"
tags: ["Sessions"]
---

# Delete a Session

`DELETE /v1/session/{session_id}`

## Request

- Base URL: `https://api.edgegap.com`
- URL: `https://api.edgegap.com/v1/session/{session_id}`
- Auth: API key in header `authorization`

Delete a session. Once deleted, a session is no more accessible and does not have a history. The deployment associated will not be deleted.

## Response `200`

Success

- SessionDelete
  - `message` string, required: A message depending of the request termination
  - `session_id` string, required: The Unique Identifier of the Session
  - `custom_id` string: Custom ID if Available

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `404`: Not Found
- `410`: Instance Already terminated
- `500`: Internal Server Error

---

[API](https://skmtc.dev/edgegap/apis/edgegap-v1.md) · [All operations](https://skmtc.dev/edgegap/apis/edgegap-v1/llms.txt) · [OpenAPI document](https://skmtc.dev/edgegap/apis/edgegap-v1/revisions/9fa2b393a6be?raw)
