---
title: "Delete an org secret"
method: DELETE
path: "/org/secrets/{key}"
tags: ["Functions"]
---

# Delete an org secret

`DELETE /org/secrets/{key}`

Removes the org secret. Functions keep the previous value until
each is redeployed. Returns 404 if the key did not exist.

## Response `204`

Secret deleted

## Other responses

- `400` — Invalid request parameters
- `401` — Invalid or missing API key
- `404` — Resource not found

---

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