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

# Delete session

`DELETE /api/sessions/{sessionId}`

## Request

- Base URL: `/api/plugins/consensys-asko11y-app/resources` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/plugins/consensys-asko11y-app/resources/api/sessions/{sessionId}`
- Auth: one of:
  - API key in cookie `grafana_session`
  - HTTP bearer

Deletes a session. Only the session owner (same user + org) can delete it. This action is irreversible.

## Path parameters

- `sessionId` string, required

## Headers

- `X-Grafana-Org-Id` string

## Response `200`

Session deleted

- object
  - `success` boolean

## Other responses

- `401`: Unauthorized (missing or invalid authentication)
- `404`: Resource not found
- `500`: Internal server error

---

[API](https://skmtc.dev/consensys/apis/ask-o11y-ai-powered-observability-assistant-api.md) - [All operations](https://skmtc.dev/consensys/apis/ask-o11y-ai-powered-observability-assistant-api/llms.txt) - [OpenAPI document](https://skmtc.dev/consensys/apis/ask-o11y-ai-powered-observability-assistant-api/revisions/ee3ccd0f186d?raw)
