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

# Delete a submission

> Discard a draft submission and every person pushed under it.

<Note>
  Only a draft can be deleted — once the submission has been sent to the tax authority it can no longer be deleted. The deletion runs in the background: the call returns immediately, and a draft with a large number of persons may take a while to disappear.
</Note>


## OpenAPI

````yaml delete /reports/mai55/v1/submissions/{submissionId}
openapi: 3.1.0
info:
  title: MAI55 REST API
  description: >
    <p>REST API for reporting MAI55 data to the Lithuanian State Tax
    Inspectorate. Open a submission for a

    reporting year, push the reportable persons under its id, then submit it to
    the tax authority.</p>


    <p>A submission carries exactly one sub-report, chosen with
    <code>type</code>: <strong>SIPL</strong> (account

    incomes), <strong>SLIK</strong> (account balances) or <strong>SKIS</strong>
    (outstanding debt

    agreements).</p>
  version: 0.0.1
servers:
  - url: https://api.rrc.dev.finventi.com
    description: Development
  - url: https://api.rrc.finventi.com
    description: Production
security:
  - bearer-jwt: []
tags:
  - name: Submissions
  - name: SLIK
  - name: SKIS
  - name: SIPL
paths:
  /reports/mai55/v1/submissions/{submissionId}:
    delete:
      tags:
        - Submissions
      summary: Delete a submission
      description: >-
        Deletes a whole submission and every person pushed under it while it is
        still a draft. Once sent to the tax authority it can no longer be
        deleted. The deletion runs in the background, the call returns
        immediately, and a draft with many persons may take a while to
        disappear.
      operationId: deleteSubmission
      parameters:
        - name: submissionId
          in: path
          required: true
          schema:
            type: string
      responses:
        '202':
          description: Deletion accepted; runs in the background
        '409':
          description: Submission already submitted
components:
  securitySchemes:
    bearer-jwt:
      type: oauth2
      flows:
        clientCredentials:
          tokenUrl: >-
            https://auth.sandbox.finventi.com/realms/sti-connector/protocol/openid-connect/token
          scopes: {}

````