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

# Revoke Link Token

> Permanently revoke a link token

<RequestExample>
  ```bash cURL theme={null}
  curl --request DELETE "https://api.subtotal.com/link-tokens/$SUBTOTAL_LINK_TOKEN" \
    --header "X-Api-Key: $SUBTOTAL_API_KEY"
  ```
</RequestExample>

Authenticate from your backend with `X-Api-Key` or an OAuth access token with `connections:write`. Use the raw token as the path parameter, and redact that request path from logs.

Returns `204` for an owned active, expired, or already-revoked token; an unknown or foreign token returns `404`. Revocation does not disconnect existing connections or invalidate already-issued connection JWTs. See [revoke or replace a URL](/docs/subtotal-link/link-tokens#revoke-or-replace-a-url).


## OpenAPI

````yaml delete /link-tokens/{link_token}
openapi: 3.1.0
info:
  title: FastAPI
  version: 0.1.0
servers: []
security: []
paths:
  /link-tokens/{link_token}:
    delete:
      tags:
        - link_tokens
      summary: Revoke Link Token
      description: Permanently revoke a link token
      operationId: revoke_link_token_link_tokens__link_token__delete
      parameters:
        - name: link_token
          in: path
          required: true
          schema:
            type: string
            minLength: 49
            maxLength: 49
            pattern: ^lt_v1_[A-Za-z0-9_-]{43}$
            title: Link Token
        - name: authorization
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Authorization
        - name: x-api-key
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: X-Api-Key
      responses:
        '204':
          description: Successful Response
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````