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

# Delete expense report

> Soft-deletes an expense report owned by the calling user (status set to `DELETED`, not physically removed). Refused with 403 if any attached expense record is in a restricted status — typically because the report has already been sent in or approved.



## OpenAPI

````yaml /openapi/findity-expense-api.json delete /expensereports/{expenseReportId}
openapi: 3.0.3
info:
  title: Findity Expense API
  description: Findity Expense API
  version: 1.0.0
servers:
  - url: https://stage-api.findity.com/api/v1/expense
  - url: https://api.findity.com/api/v1/expense
security:
  - bearerAuth: []
paths:
  /expensereports/{expenseReportId}:
    delete:
      tags:
        - Expense Reports
      summary: Delete expense report
      description: >-
        Soft-deletes an expense report owned by the calling user (status set to
        `DELETED`, not physically removed). Refused with 403 if any attached
        expense record is in a restricted status — typically because the report
        has already been sent in or approved.
      operationId: deleteExpenseReport
      parameters:
        - $ref: '#/components/parameters/expenseReportId'
        - $ref: '#/components/parameters/deleteExpenseRecords'
      responses:
        '204':
          description: No content
        '403':
          description: Not allowed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/403Error'
              example:
                result: error
                description: Not allowed
components:
  parameters:
    expenseReportId:
      in: path
      name: expenseReportId
      required: true
      description: Id of the expense report.
      schema:
        $ref: '#/components/schemas/Uuid'
      example: da35f675f40e47bcae2fff3c43a94c73
    deleteExpenseRecords:
      name: deleteExpenseRecords
      in: query
      description: optional flag to delete all related expense records
      required: false
      schema:
        type: boolean
  schemas:
    403Error:
      type: object
      properties:
        result:
          type: string
        description:
          type: string
    Uuid:
      type: string
      pattern: ^[0-9a-fA-F]{32}$
      description: UUID without dashes (32-character hex string)
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````