---
title: "Delete a session"
method: DELETE
path: "/api/v0/sessions/{sessionId}"
tags: ["Sessions"]
---

# Delete a session

`DELETE /api/v0/sessions/{sessionId}`

Soft-deletes a session (can be restored within retention period). This feature is enabled for selected organizations only.

## Path parameters

- `sessionId` string, required — Session ID

## Query parameters

- `computerId` string — Computer ID to query directly

## Response `204`

Response for status 204

- DeleteSession204ResponseBody

## Other responses

- `401` — Response for status 401
- `403` — Response for status 403
- `404` — Response for status 404
- `500` — Response for status 500
- `503` — Response for status 503

---

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