---
title: "Revoke share"
method: DELETE
path: "/api/sessions/share/{shareId}"
tags: ["Shares"]
---

# Revoke share

`DELETE /api/sessions/share/{shareId}`

## 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/share/{shareId}`
- Auth: one of:
  - API key in cookie `grafana_session`
  - HTTP bearer

Revokes a share link. Only the user who created the share can revoke it. After revocation, the share URL will no longer be accessible.

## Path parameters

- `shareId` string, required

## Headers

- `X-Grafana-Org-Id` string

## Response `200`

Share revoked

- object
  - `success` boolean

## Other responses

- `401`: Unauthorized (missing or invalid authentication)
- `403`: Access denied (user doesn't own this share)
- `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)
