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

# Delete a credential



## OpenAPI

````yaml /openapi.json delete /v1/credentials/{id}
openapi: 3.1.0
info:
  title: CNAP API
  version: 1.0.0
  description: >-
    Public API for managing CNAP workspaces, clusters, templates, products, and
    deployments.


    Authenticate with a Personal Access Token via the `Authorization: Bearer
    cnap_pat_...` header.


    Workspace-scoped endpoints require the `X-Workspace-Id` header.
servers:
  - url: https://api.cnap.tech
    description: Production
security: []
paths:
  /v1/credentials/{id}:
    delete:
      tags:
        - Credentials
      summary: Delete a credential
      parameters:
        - schema:
            type: string
          required: true
          name: id
          in: path
        - schema:
            type: string
            enum:
              - cloud
              - registry
              - cloudflare
            description: Credential type (required for routing)
          required: true
          description: Credential type (required for routing)
          name: type
          in: query
      responses:
        '204':
          description: Deleted
        '401':
          description: Unauthorized
        '403':
          description: X-Workspace-Id required
        '404':
          description: Credential not found
      security:
        - BearerAuth: []
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: >-
        Personal Access Token (cnap_pat_...) or OAuth2 JWT. Create tokens at
        https://cnap.tech/account/tokens

````