> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stateset.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete a secret

> Delete a secret

### Path parameters

<ParamField path="name" type="string" required>
  Secret name
</ParamField>

### Response

`SuccessResponse`

<ResponseField name="success" type="boolean" />

### Status codes

| Code  | Meaning          |
| ----- | ---------------- |
| `200` | Secret deleted   |
| `404` | Secret not found |

<RequestExample>
  ```bash cURL theme={null}
  curl --request DELETE \
    --url 'https://api.sandbox.stateset.app/api/v1/secrets/{name}' \
    --header "Authorization: Bearer $STATESET_SANDBOX_API_KEY"
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "success": true
  }
  ```
</ResponseExample>
