---
title: "Delete a secret from project by secret name"
method: DELETE
path: "/api/cli/v1/projects/{project_slug}/secrets/{secret_name}"
tags: ["Project/Secrets"]
---

# Delete a secret from project by secret name

`DELETE /api/cli/v1/projects/{project_slug}/secrets/{secret_name}`

Delete a secret from project by secret name

## Path parameters

- `project_slug` string, required
- `secret_name` string, required

## Response `200`

OK

## Other responses

- `401` — Not authorized
- `404` — Delete a secret from project by secret name

## Changes

- **2022-04-21** (v1) `08adcc720aec` — 2 info
  - added the non-success response with the status `404`
  - removed the non-success response with the status `422`
- **2022-03-14** (v1) `c7fe7612b0ab` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/uffizzicloud/apis/uffizzi-docs/changes/api/cli/v1/projects/:project_slug/secrets/:secret_name/delete.md)

---

[API](https://skmtc.dev/uffizzicloud/apis/uffizzi-docs.md) · [All operations](https://skmtc.dev/uffizzicloud/apis/uffizzi-docs/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/uffizzicloud/uffizzi-docs/revisions/b656c8c2fcd1/schema)
