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

# Delete a payment link

> Remoção lógica. A checkout_url passa a responder 404.



## OpenAPI

````yaml /api-reference/openapi.json delete /api/v1/payment-links/{token}
openapi: 3.0.0
info:
  title: PlugToPay API
  description: API to make payments easy in multiple gateways.
  version: 1.0.0
servers:
  - url: http://localhost:7701
    description: Test Server
security: []
paths:
  /api/v1/payment-links/{token}:
    delete:
      tags:
        - Payment Links
      summary: Delete a payment link
      description: Remoção lógica. A checkout_url passa a responder 404.
      parameters:
        - $ref: '#/components/parameters/XClientId'
        - name: token
          in: path
          required: true
          schema:
            type: string
            example: pl_live_a1b2c3d4e5f6
      responses:
        '204':
          description: Link removido (sem corpo)
        '401':
          description: Unauthorized — Invalid API Key
        '404':
          description: Link não encontrado
      security:
        - ApiKeyAuth: []
components:
  parameters:
    XClientId:
      name: x-client-id
      in: header
      description: Client identifier for the company in the request.
      required: true
      schema:
        type: string
        example: client_abc123
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      description: Company API key. Send in the X-API-Key header.
      name: X-API-Key
      in: header

````