---
title: "DELETE /api/document/{document-id}/public-link"
method: DELETE
path: "/api/document/{document-id}/public-link"
tags: ["/api/document"]
---

# DELETE /api/document/{document-id}/public-link

`DELETE /api/document/{document-id}/public-link`

Remove the public link for a Document.

  Deletes the public UUID from the Document, making it no longer accessible via the public sharing endpoint.
  This revokes public access to the Document - the existing public link will no longer work.

  Returns a 204 No Content response on success.

  Requires superuser permissions. Public sharing must be enabled via the `enable-public-sharing` setting.
  Throws a 404 if the Document doesn't exist, is archived, or doesn't have a public link.

## Path parameters

- `document-id` integer, required

## Response `2XX`

Successful response

## Other responses

- `4XX` — Client error response
- `5XX` — Server error response

---

[API](https://skmtc.net/metabase/apis/metabase-api.md) · [All operations](https://skmtc.net/metabase/apis/metabase-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/metabase/metabase-api/revisions/08b5a2bafb4f/schema)
