---
title: "Delete Document Attachment"
method: DELETE
path: "/public/v1/documents/{id}/attachments/{attachment_id}"
tags: ["Document Attachments"]
---

# Delete Document Attachment

`DELETE /public/v1/documents/{id}/attachments/{attachment_id}`

## Request

- Base URL: `https://api.pandadoc.com`
- URL: `https://api.pandadoc.com/public/v1/documents/{id}/attachments/{attachment_id}`
- Auth: one of:
  - API key in header `Authorization`
  - OAuth 2
    - Authorization code: `https://app.pandadoc.com/oauth2/authorize`
    - Token URL: `https://api.pandadoc.com/oauth2/access_token`
- TypeScript: <https://skmtc.dev/pandadoc/apis/pandadoc-public-api/docs/public/v1/documents/:id/attachments/:attachment_id/delete.ts> (a function with typed inputs; its response is checked against the schema)

Deletes an attachment from the document.

## Path parameters

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

## Response `204`

No Content

## Other responses

- `401`: Authentication error
- `404`: Not found
- `423`: Document is locked for editing
- `429`: Too Many Requests

---

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