---
title: "Delete a secret"
method: DELETE
path: "/api/secrets/{id}"
tags: ["settings"]
---

# Delete a secret

`DELETE /api/secrets/{id}`

[cloud-only] Permanently deletes a stored secret.

## Path parameters

- `id` string, required

## Response `204`

Secret deleted

## Other responses

- `401` — Unauthorized
- `403` — Forbidden - user does not own this secret
- `404` — Not found
- `500` — Internal server error
- `503` — Service unavailable - secrets feature disabled

## Changes

- **2026-05-22** `09a5075587c8` — 3 info
  - added the non-success response with the status `403`
  - added the non-success response with the status `500`
  - added the non-success response with the status `503`
- **2026-05-08** `c9640fded659` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/comfy-org/apis/comfyui-api/changes/api/secrets/: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)
