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

# Delete secret

> Permanently delete one of your organization's secrets.

Deletes the secret and its stored value. This action cannot be undone.

```bash theme={null}
curl -X DELETE https://api.allium.so/api/v1/secrets/${SECRET_ID} \
  -H "X-API-KEY: ${ALLIUM_API_KEY}"
```

Returns `200` with a `null` body on success, and `404` if the secret doesn't exist or belongs to another organization.


## OpenAPI

````yaml _openapi/account-api.json DELETE /api/v1/secrets/{secret_id}
openapi: 3.1.0
info:
  title: Allium Account API
  version: 0.1.0
servers:
  - url: https://api.allium.so
security: []
paths:
  /api/v1/secrets/{secret_id}:
    delete:
      tags:
        - SECRETS
      summary: Delete Secret
      operationId: delete_org_secret_api_v1_secrets__secret_id__delete
      parameters:
        - $ref: '#/components/parameters/SecretId'
      responses:
        '200':
          description: Successful Response
        '404':
          $ref: '#/components/responses/NotFound'
      security:
        - APIKeyBearer: []
components:
  parameters:
    SecretId:
      name: secret_id
      in: path
      required: true
      description: Secret ID, as returned by Create Secret or List Secrets.
      schema:
        type: string
        title: Secret Id
  responses:
    NotFound:
      description: >-
        The secret does not exist in your organization, or the API key does not
        belong to an organization
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorMessage'
  schemas:
    ErrorMessage:
      properties:
        message:
          type: string
          title: Message
      type: object
      required:
        - message
      title: ErrorMessage
  securitySchemes:
    APIKeyBearer:
      type: apiKey
      in: header
      name: X-API-KEY

````