---
title: "Delete uploaded document"
method: DELETE
path: "/v2/insurance_contracts/{id}/attachments/{attachment_id}"
tags: ["Insurance Contracts"]
---

# Delete uploaded document

`DELETE /v2/insurance_contracts/{id}/attachments/{attachment_id}`

## Request

- Base URL: `https://thirdparty.qonto.com`
- URL: `https://thirdparty.qonto.com/v2/insurance_contracts/{id}/attachments/{attachment_id}`
- Auth: OAuth 2
  - Authorization code: `https://oauth.qonto.com/oauth2/auth`
  - Token URL: `https://oauth.qonto.com/oauth2/token` scopes: `insurance_contract.write`

OAuth scope: `insurance_contract.write`

---

This endpoint allows you to delete a previously uploaded document from a insurance contract.

## Path parameters

- `id` string, required
- `attachment_id` string, required

## Headers

- `X-Qonto-Staging-Token` string

## Response `204`

Attachment deleted successfully

## Other responses

- `400`: Returns a bad request error
- `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)
