---
title: "DELETE /settings/secrets/{name}"
method: DELETE
path: "/settings/secrets/{name}"
tags: ["Secrets"]
---

# DELETE /settings/secrets/{name}

`DELETE /settings/secrets/{name}`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/settings/secrets/{name}`
- Auth: HTTP bearer

## Path parameters

- `name` string, required

## Query parameters

- `project_id` integer

## Response `204`

Secret deleted

## Other responses

- `401`: Unauthorized
- `403`: Insufficient permissions
- `404`: Secret not found

## Changes

- **2026-10-23** `fdfa2df06ae7`: 1 info
  - added the new optional `query` request parameter `project_id`
- **2026-10-23** `24af93ff5379`: 1 warning
  - deleted the `query` request parameter `project_id`
- **2026-10-22** `add7f7b41ae2`: 1 info
  - added the new optional `query` request parameter `project_id`
- **2026-04-25** `774be20905f2`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/settings/secrets/:name/delete.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
