---
title: "Delete a Secret"
method: DELETE
path: "/v1/projects/secrets/{id}"
---

# Delete a Secret

`DELETE /v1/projects/secrets/{id}`

Permanently deletes a secret from the project.

## Path parameters

- `id` string, required

## Response `200`

Secret deleted successfully

- DeleteSecretResponse
  - `success` boolean
  - `message` string
  - `data` object
    - `isDeleted` boolean

## Other responses

- `400` — Bad request
- `401` — Unauthorized
- `500` — Server Side Error

---

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