---
title: "Delete a project secret. Running containers keep their mounted secret files until they are redeployed."
method: DELETE
path: "/projects/{project_id}/secrets/{secret_id}"
tags: ["Secrets"]
---

# Delete a project secret. Running containers keep their mounted secret files until they are redeployed.

`DELETE /projects/{project_id}/secrets/{secret_id}`

## Request

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

## Path parameters

- `project_id` integer, required
- `secret_id` integer, required

## Response `204`

Secret deleted

## Other responses

- `404`: Secret not found
- `500`: Internal server error

## Changes

- **2026-11-25** `480a86944327`: 1 info
  - the endpoint scheme security `bearer_auth` was added to the API
- **2026-05-30** `b72341d12f63`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/projects/:project_id/secrets/:secret_id/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)
