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

# Delete a session

`DELETE /v1/sessions/{id}`

## Request

- Base URL: `https://api.marketintell.ai`
- URL: `https://api.marketintell.ai/v1/sessions/{id}`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-API-Key`

Delete a chat session you own. Cascades to all messages in the session. Returns 404 if the session doesn't exist or isn't owned by the calling key. Idempotent only in the sense that a second call returns 404, not 200.

## Path parameters

- `id` string, uuid, required

## Response `200`

Session deleted

- object
  - `success` boolean, required
  - `deleted` integer: Rows removed

## Other responses

- `404`: Session not found

---

[API](https://skmtc.dev/marketintell/apis/marketintell-api.md) · [All operations](https://skmtc.dev/marketintell/apis/marketintell-api/llms.txt) · [OpenAPI document](https://skmtc.dev/marketintell/apis/marketintell-api/revisions/f3ef87afc41f?raw)
