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

# Delete an Immediate Charge

> Use this endpoint to delete (cancel) an immediate collection.

**Notes:**
- This operation cancels the collection and changes its status
- Collections with status CONCLUDED cannot be deleted
- The deletion reason is required



## OpenAPI

````yaml en/openapi/v3-current/indirect-pix.yaml DELETE /v1/collections/immediate/{collection_id}
openapi: 3.0.3
info:
  title: Plugin BR Pix Indirect - Complete API
  description: |
    Complete API for Brazilian Pix instant payment system including
    Pix key dictionary operations, QR code generation/decoding, transactions and
    transaction limits.
  version: 1.0.0
servers:
  - url: https://plugin-pix-indirect.api.lerian.net
security:
  - bearerAuth: []
paths:
  /v1/collections/immediate/{collection_id}:
    delete:
      tags:
        - Collections API
      summary: Delete an Immediate Charge
      description: |-
        Use this endpoint to delete (cancel) an immediate collection.

        **Notes:**
        - This operation cancels the collection and changes its status
        - Collections with status CONCLUDED cannot be deleted
        - The deletion reason is required
      parameters:
        - name: collection_id
          in: path
          description: Identifier of the immediate collection
          required: true
          schema:
            type: string
        - name: X-Account-Id
          in: header
          description: Account ID (UUID format)
          required: true
          schema:
            type: string
        - name: reason
          in: header
          description: Reason for deletion (DELETED_BY_USER or DELETED_BY_PSP)
          required: true
          schema:
            type: string
      responses:
        '204':
          description: No Content
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorFormat'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorFormat'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorFormat'
      deprecated: false
      security:
        - bearerAuth: []
components:
  schemas:
    ErrorFormat:
      type: object
      description: The response message error.
      required:
        - code
        - title
        - message
      properties:
        code:
          type: string
          description: A unique, stable identifier for the error.
        title:
          type: string
          description: A brief summary of the issue.
        message:
          type: string
          description: Detailed guidance for resolving the error.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````