---
title: "Revoke a database share"
method: DELETE
path: "/spaces/{space_id}/shares/{share_token}"
---

# Revoke a database share

`DELETE /spaces/{space_id}/shares/{share_token}`

Revokes a shared snapshot, deleting the underlying storage snapshot. The share is identified by its share token.

## Path parameters

- `space_id` string, required
- `share_token` string, required

## Response `200`

Share revoked

- DatabaseShare — A shareable snapshot of a database. Can be used to create a new database from the snapshot in another space.
  - `share_token` string, required — Token passed to `createDatabase` (via `share_token`) to create a new database from the shared snapshot in another space. Also used to revoke the share via `revokeShare`. Always begins with `gs_`.
  - `database_id` string, required — ID of the source database.
  - `database_name` string, required — Name of the source database.
  - `created_at` string, date-time, required — Time the share was created.
  - `expires_at` string, date-time — Time the share expires. Absent if the share does not expire.
  - `revoked_at` string, date-time — Time the share was revoked. Absent if the share is still active.

## Other responses

- `default` — Error response

## Changes

- **2026-08-11** `42816b90d8d6` — 1 warning
  - added the new `signups_disabled` enum value to the `code` response property for the response status `default`
- **2026-06-23** `d0e78bae6ce1` — 1 warning
  - added the new `compute_limit_exceeded` enum value to the `code` response property for the response status `default`
- **2026-06-22** `bdf92f48aec1` — 1 info
  - added the optional property `code` to the response with the `default` status
- **2026-05-04** `9a3d6f2f9f9f` — 1 breaking
  - added the pattern `^gs_[A-Za-z0-9_-]+$` to the `path` request parameter `share_token`
- **2026-04-17** `a7becb6668ec` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/timescale/apis/ghost-api/changes/spaces/:space_id/shares/:share_token/delete.md)

---

[API](https://skmtc.dev/timescale/apis/ghost-api.md) · [All operations](https://skmtc.dev/timescale/apis/ghost-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/timescale/ghost-api/revisions/42816b90d8d6/schema)
