---
title: "Revoke one share link by its code."
method: DELETE
path: "/documents/{id}/share/{code}"
tags: ["Sharing"]
---

# Revoke one share link by its code.

`DELETE /documents/{id}/share/{code}`

## Request

- Base URL: `https://www.livediagram.app/api`
- URL: `https://www.livediagram.app/api/documents/{id}/share/{code}`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-Owner-Id`

## Path parameters

- `id` string, required
- `code` string, required

## Response `204`

Success.

## Other responses

- `401`: Error.
- `403`: Error.
- `404`: Error.
- `410`: Error.
- `429`: Rate limited. Back off and retry.

---

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