---
title: "Deletes a document from an invoice"
method: DELETE
path: "/invoices/{invoice_id}/documents/{document_id}"
tags: ["Invoice Documents"]
---

# Deletes a document from an invoice

`DELETE /invoices/{invoice_id}/documents/{document_id}`

## Request

- Base URL: `https://api.rillet.com`
- URL: `https://api.rillet.com/invoices/{invoice_id}/documents/{document_id}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/rillet/apis/rillet-accounting-api/docs/invoices/:invoice_id/documents/:document_id/delete.ts> (a function with typed inputs; its response is checked against the schema)

Removes one attachment from an invoice and deletes the stored file.
When Update approval is required, returns 202 with a review reference. The attachment
remains effective until approval. Stored files referenced by review history are retained.
Works for files uploaded through the API or the Rillet application.
Removing a file from an invoice that was already sent does not change the email that went out.

## Response `202`

Attachment removal awaiting approval; the attachment remains effective

- InvoiceUpdateProposal: Proposed edits awaiting approval. These changes have not been applied to the invoice.
  - `invoice_id` string, uuid, required
  - `approval_request_id` string, uuid, required
  - `status` 'PENDING', required

## Other responses

- `204`: Document removed
- `400`: Malformed invoice or document id
- `404`: Invoice not found or not accessible, or the document is not attached to this invoice
- `409`: An invoice edit is awaiting approval or the invoice changed concurrently
- `default`: Error

## Changes

- **2026-11-03** `c393d0102005`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/rillet/apis/rillet-accounting-api/changes/invoices/:invoice_id/documents/:document_id/delete.md)

---

[API](https://skmtc.dev/rillet/apis/rillet-accounting-api.md) - [All operations](https://skmtc.dev/rillet/apis/rillet-accounting-api/llms.txt) - [OpenAPI document](https://skmtc.dev/rillet/apis/rillet-accounting-api/revisions/c393d0102005?raw)
