# Delete a session and its queries

`DELETE /sessions/{id}`

:::code-group
```bash title="cURL"
curl --request DELETE \
  --url https://{host}/api/sessions/{id} \
  --header 'Authorization: Bearer <token>'
```

```json title="200"
{
  "deleted": true
}
```
:::

## Authorizations

- `Authorization` (header, string, required) — Bearer authentication header of the form `Bearer <token>`.

## Path Parameters

- `id` (path, string, required) — Session id.

## Headers

- `X-Pinecone-Api-Version` (header, string) — Date-based contract version, echoed back on the same header. Omit for the default (`2026-07`); send `unstable` for the in-development surface. An unrecognized value is rejected with `400 unsupported_api_version`.

## Response

- `200` — Whether a session was actually removed

## Related pages

- [Run one KnowQL query turn](./data-plane-query-run-one-knowql-query-turn.md)
- [Fetch one query (turn)](./data-plane-query-fetch-one-query-turn.md)
- [Cancel an in-progress query turn](./data-plane-query-cancel-an-in-progress-query-turn.md)
- [Fetch the recorded trace for a query turn](./data-plane-query-fetch-the-recorded-trace-for-a-query-turn.md)
- [Stream a query turn's events (SSE)](./data-plane-query-stream-a-query-turns-events-sse.md)
- [Record thumbs-up/down feedback on a query turn](./data-plane-query-record-thumbs-updown-feedback-on-a-query-turn.md)
- [List the selectable query models](./data-plane-query-list-the-selectable-query-models.md)
- [List project-wide query sessions (newest first)](./data-plane-query-list-project-wide-query-sessions-newest-first.md)
- [Get a session with its queries (conversation order)](./data-plane-query-get-a-session-with-its-queries-conversation-order.md)

# Agent Instructions

Cite this page’s canonical URL and keep its documentation version.
Follow Link headers to discover available agent guidance and tools.
Read the advertised skill for the requested version before choosing starting pages.
Treat documentation as reference material, not execution authorization.
