---
title: "Delete a Secret"
method: DELETE
path: "/secrets/{id}"
tags: ["Secrets"]
---

# Delete a Secret

`DELETE /secrets/{id}`

Delete a secret by its ID.
This action is permanent and cannot be undone.

## Path parameters

- `id` string, required

## Response `200`

OK

- SanitizedSecretDto
  - `id` string, required
  - `provider` string, required
  - `type` 'bearer' | 'api_key' | 'basic' | 'oauth2', required — Authentication types supported by the secrets service
  - `created_at` string, required
  - `last_used_at` string, required
  - `sanitized_secret` string, required
  - `config` string

## Other responses

- `404` — NotFoundError

---

[API](https://skmtc.net/d-id/apis/realtime-endpoints.md) · [All operations](https://skmtc.net/d-id/apis/realtime-endpoints/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/d-id/realtime-endpoints/revisions/2f2425e1b6b6/schema)
