---
title: "Delete a workspace API key"
method: DELETE
path: "/api/workspace/api-keys/{id}"
tags: ["workspace"]
---

# Delete a workspace API key

`DELETE /api/workspace/api-keys/{id}`

[cloud-only] Revokes and deletes a workspace API key.

## Path parameters

- `id` string, required

## Response `204`

API key deleted

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not found
- `500` — Internal server error

## Changes

- **2026-05-22** `09a5075587c8` — 2 info
  - api operation id `deleteWorkspaceApiKey` removed and replaced with `revokeWorkspaceAPIKey`
  - added the non-success response with the status `500`
- **2026-05-08** `c9640fded659` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/comfy-org/apis/comfyui-api/changes/api/workspace/api-keys/:id/delete.md)

---

[API](https://skmtc.dev/comfy-org/apis/comfyui-api.md) · [All operations](https://skmtc.dev/comfy-org/apis/comfyui-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/comfy-org/comfyui-api/revisions/09a5075587c8/schema)
