---
title: "Remove all attachments from a transaction"
method: DELETE
path: "/v2/transactions/{id}/attachments"
tags: ["Attachments in Transactions"]
---

# Remove all attachments from a transaction

`DELETE /v2/transactions/{id}/attachments`

## Request

- Base URL: `https://thirdparty.qonto.com`
- URL: `https://thirdparty.qonto.com/v2/transactions/{id}/attachments`
- Auth: one of:
  - OAuth 2
    - Authorization code: `https://oauth.qonto.com/oauth2/auth`
    - Token URL: `https://oauth.qonto.com/oauth2/token` scopes: `attachment.write`
  - API key in header `Authorization`

OAuth scope: `attachment.write`

---

Remove all attachments from a transaction

---

This endpoint allows you to remove all attachments from a transaction.

Inside Qonto, attachments are files uploaded onto transactions by users. Attachments typically correspond to the *invoice* or *receipt*, and are used to justify the transactions from a bookkeeping standpoint.

## Path parameters

- `id` string, required

## Headers

- `X-Qonto-Staging-Token` string

## Response `200`

returns a success status code

## Other responses

- `401`: returns an unauthorized error
- `403`: returns a forbidden error
- `404`: returns a not found error

---

[API](https://skmtc.dev/hiit-consulting-fr/apis/qonto.md) - [All operations](https://skmtc.dev/hiit-consulting-fr/apis/qonto/llms.txt) - [OpenAPI document](https://skmtc.dev/hiit-consulting-fr/apis/qonto/revisions/25208d6f9deb?raw)
