> ## 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 an account

> Remove an account by its account number.

<Note>
  If the account has not been reported yet, it is simply removed. If it has, a deletion is sent to the tax authority.
</Note>


## OpenAPI

````yaml delete /reports/crs/v1/submissions/{submissionId}/accounts/{accountNumber}
openapi: 3.1.0
info:
  title: CRS REST API
  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: CRS REST API
    description: >-
      REST API for submitting and correcting CRS/DAC2 account data. Open a
      submission for a reporting year, push the reportable accounts under its
      id, then submit it to the tax authority.
paths:
  /reports/crs/v1/submissions/{submissionId}/accounts/{accountNumber}:
    delete:
      tags:
        - CRS REST API
      summary: Delete an account
      description: >-
        Deletes an account by its account number. In a submission the account is
        removed outright, since it has not yet been reported to the tax
        authority. In a correction its account report is deleted at the tax
        authority; an account it has never seen is rejected.
      operationId: deleteAccount
      parameters:
        - name: submissionId
          in: path
          required: true
          schema:
            type: string
        - name: accountNumber
          in: path
          required: true
          schema:
            type: string
      responses:
        '204':
          description: Account deleted
        '404':
          description: Nothing reported for this account to delete
components:
  securitySchemes:
    bearer-jwt:
      type: oauth2
      flows:
        clientCredentials:
          tokenUrl: >-
            https://auth.sandbox.finventi.com/realms/sti-connector/protocol/openid-connect/token
          scopes: {}

````