---
title: "Delete an API key"
method: DELETE
path: "/spaces/{space_id}/api_keys/{prefix}"
---

# Delete an API key

`DELETE /spaces/{space_id}/api_keys/{prefix}`

Deletes an API key from the specified space.
Requires user authentication (JWT). API keys cannot delete other API keys.

## Path parameters

- `space_id` string, required
- `prefix` string, required

## Response `204`

API key deleted

## Other responses

- `default` — Error response

---

[API](https://skmtc.net/timescale/apis/ghost-api.md) · [All operations](https://skmtc.net/timescale/apis/ghost-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/timescale/ghost-api/versions/808022f897be/schema)
