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

# Delete Secret

> Syteca ACB REST API endpoint to delete a secret. Permanent — there is no soft-delete.

Deletes a secret permanently. There is no soft-delete or restore — once deleted, the secret is gone, including its credentials and audit history.

<Note>
  For ACB deployments updated from a version prior to 1.2, switch to the `https://{hostname}/EkranACB` server in the Playground.
</Note>

### Permissions required

The user owning the Access Token must have **Owner** role on the secret.

### Errors

See [Status codes](/docs/api/acb/api-reference#status-codes). Common errors:

* **403 Forbidden** — user lacks Owner role.
* **404 Not Found** — secret doesn't exist.
* **409 Conflict** — secret is currently checked out by another user.

## Related

<CardGroup cols={2}>
  <Card title="Get secret" icon="info" href="/docs/api/acb/endpoints/get-secret">Verify before deletion.</Card>
  <Card title="Force check-in" icon="undo" href="/docs/api/acb/endpoints/force-checkin">Release a checked-out secret before deletion.</Card>
  <Card title="Delete folder" icon="folder-minus" href="/docs/api/acb/endpoints/delete-folder">Delete the parent folder after removing all secrets.</Card>
  <Card title="API reference" icon="square-code" href="/docs/api/acb/api-reference">Status codes.</Card>
</CardGroup>


## OpenAPI

````yaml DELETE /api/secrets/{id}
openapi: 3.0.3
info:
  title: Application Credentials Broker API
  description: >-
    API for managing secrets and folders in the Application Credentials Broker
    system
  version: 1.4.0
  contact:
    name: API Support
    email: support@example.com
servers:
  - url: https://your-syteca-host/SytecaACB
    description: On-premises Syteca ACB service (v1.2 or later)
    variables:
      hostname:
        default: your-syteca-host.example.com
        description: Your Syteca Application Server hostname
  - url: https://your-syteca-host/EkranACB
    description: Legacy URL prefix for ACB deployments updated from pre-v1.2
    variables:
      hostname:
        default: your-syteca-host.example.com
        description: Your Syteca Application Server hostname
security:
  - AccessTokenAuth: []
paths:
  /api/secrets/{id}:
    delete:
      tags:
        - Secrets
      summary: Delete secret
      description: Deletes a secret by its ID
      operationId: deleteSecret
      parameters:
        - name: id
          in: path
          required: true
          description: The ID of the secret to delete
          schema:
            type: integer
            format: int32
            minimum: 1
      responses:
        '204':
          description: Secret deleted successfully
        '403':
          description: Access denied
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Secret not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    ErrorResponse:
      type: object
      properties:
        status:
          type: integer
          description: HTTP status code
        message:
          type: string
          description: Error message
      required:
        - status
        - message
  securitySchemes:
    AccessTokenAuth:
      type: apiKey
      in: header
      name: Authorization
      description: Access token for authentication

````