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

# Delete a secret

`DELETE /secrets/{id}`

Delete an existing secret. Secrets are unrecoverable after being deleted so make sure that they are not in-use before deleting them.

## Path parameters

- `id` string, required

## Response `200`

The deleted Secret object

- Secrets — A secret is used to authenticate API requests in unsecure environments (client-side, emails, etc.)
  - `id` string, required — Secret ID
  - `name` string, required — Name of the secret
  - `description` string — Description of the secret
  - `secret` string — The actual secret
  - `organization_id` string, required — The ID of the organization that owns this secret
  - `created_at` string, date-time — Creation date of the secret
  - `updated_at` string, date-time — Last update date of the secret
  - `version` number — Revision number of the secret

---

[API](https://skmtc.net/didomi/apis/didomi-api.md) · [All operations](https://skmtc.net/didomi/apis/didomi-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/didomi/didomi-api/revisions/c82339816c36/schema)
