---
title: "Delete an attachment from an invoice"
method: DELETE
path: "/companies/{companyId}/invoices/{invoiceId}/attachments/{attachmentId}"
tags: ["invoices"]
---

# Delete an attachment from an invoice

`DELETE /companies/{companyId}/invoices/{invoiceId}/attachments/{attachmentId}`

## Request

- Base URL: `https://api.bokio.se/v1`
- URL: `https://api.bokio.se/v1/companies/{companyId}/invoices/{invoiceId}/attachments/{attachmentId}`
- Auth: one of:
  - HTTP bearer
  - OAuth 2
    - Authorization code: `/authorize`
    - Client credentials
    - Token URL: `/token` scopes: `invoices:write`

Deletes an attachment from an existing draft invoice.

**NOTE:** The invoice must be in draft status.

**Scope:** `invoices:write`

## Response `204`

Attachment deleted from invoice

---

[API](https://skmtc.dev/bokio/apis/company-api.md) - [All operations](https://skmtc.dev/bokio/apis/company-api/llms.txt) - [OpenAPI document](https://skmtc.dev/bokio/apis/company-api/revisions/9395020f3da2?raw)
