---
title: "Delete Attachment"
method: DELETE
path: "/analyze/v2/agreements/{id}/attachments/{attachment_id}"
tags: ["Analyze Attachments"]
---

# Delete Attachment

`DELETE /analyze/v2/agreements/{id}/attachments/{attachment_id}`

## Request

- Base URL: `https://api.linksquares.com/api`
- URL: `https://api.linksquares.com/api/analyze/v2/agreements/{id}/attachments/{attachment_id}`
- Auth: API key in header `x-api-key`
- TypeScript: <https://skmtc.dev/linksquares/apis/linksquares-api/docs/analyze/v2/agreements/:id/attachments/:attachment_id/delete.ts> (a function with typed inputs; its response is checked against the schema)

Remove an existing attachment from an agreement in Analyze.

## Path parameters

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

## Response `204`

agreement attachment successfully deleted

## Other responses

- `400`: failed to delete agreement attachment
- `404`: agreement attachment not found

---

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