> ## 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/fatca/v1/submissions/{submissionId}/accounts/{accountNumber}
openapi: 3.1.0
info:
  title: FATCA REST API
  description: >
    <p>REST API for reporting FATCA (Foreign Account Tax Compliance Act) US
    reportable account data. Open a submission for

    a reporting year, send the reportable accounts under its id, then submit it
    to the tax authority.</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: FATCA REST API
    description: >-
      REST API for submitting and correcting FATCA account data. Create a
      submission for a reporting year, push the reportable accounts under its
      id, the service will package the account data and send it to the
      regulatory authority.
paths:
  /reports/fatca/v1/submissions/{submissionId}/accounts/{accountNumber}:
    delete:
      tags:
        - FATCA 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: {}

````