# Delete Secret

Source: https://agenta.ai/docs/reference/api/delete-secret

`DELETE /secrets/{secret_id}`

Base URL: `https://us.cloud.agenta.ai/api` (US cloud), `https://eu.cloud.agenta.ai/api` (EU cloud) or `$AGENTA_HOST/api` (self-hosted). Authentication: `Authorization: ApiKey YOUR_API_KEY`.

Delete Secret

## Parameters

- `secret_id` (in path, string, required)
- `scope` (in query, string, one of: "project", "organization", "user")

## Response schemas

### 204: Successful Response

### 422: Validation Error

- `detail` (array of object)
  - `loc` (array of string | integer, required)
  - `msg` (string, required)
  - `type` (string, required)
  - `input` (any)
  - `ctx` (Context)
