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

# Delete a draft document

> Deletes a DRAFT document together with its draft accrual entry. A posted document must be unconfirmed first, and a receipt recorded as an expense must be unrecorded first.



## OpenAPI

````yaml /openapi.json delete /api/documents/{id}
openapi: 3.1.0
info:
  title: Equated API
  version: 1.0.0
  description: >-
    Agent-facing accounting API. Authenticate with a bearer token issued from
    Settings → API Tokens, or via the in-app session cookie when called from the
    web client.
servers:
  - url: https://app.equated.co
    description: API server
security: []
paths:
  /api/documents/{id}:
    delete:
      tags:
        - Documents
      summary: Delete a draft document
      description: >-
        Deletes a DRAFT document together with its draft accrual entry. A posted
        document must be unconfirmed first, and a receipt recorded as an expense
        must be unrecorded first.
      parameters:
        - schema:
            type: integer
            minimum: 0
            exclusiveMinimum: true
          required: true
          name: id
          in: path
      responses:
        '200':
          description: Deleted
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    type: boolean
                    enum:
                      - true
                required:
                  - ok
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: API token issued from the Equated app under Settings → API Tokens.

````