# Delete secret in organization

`DELETE /v1/organizations/{organization}/secrets/{secret}`, operation `secrets.DeleteSecretInOrganization`

Deletes a secret and destroys its versions.

An organization's secret isn't deleted while projects have it: stop sharing it with them first. A project can't delete a secret its organization shares with it.

## Parameters

| Name | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `organization` | path | Yes | `string` | The organization's ID. |
| `secret` | path | Yes | `string` | The secret's ID. |

## Responses

### 204

No Content

### default

Error

Base URL: `https://api.kosem.ai`. See [API conventions](https://docs.kosem.ai/reference/api-conventions.md) for authentication, pagination and errors, and [https://docs.kosem.ai/openapi.yaml](https://docs.kosem.ai/openapi.yaml) for the full OpenAPI document.