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

# Delete a secret

`DELETE /secrets/{secretID}`

Revoke the secret and schedule its versions for cleanup.

## Path parameters

- `secretID` string, required — Identifier of the secret (sec_ prefixed), or its canonical lower-case name

## Response `204`

Successfully deleted the secret

## Other responses

- `400` — Bad request
- `401` — Authentication error
- `403` — Forbidden
- `404` — Not found
- `409` — Conflict
- `429` — Too many requests
- `500` — Server error
- `502` — Backend error
- `504` — Backend timeout

---

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