---
title: "Delete an attachment"
method: DELETE
path: "/attachments/{attachment_id}"
tags: ["Attachments"]
---

# Delete an attachment

`DELETE /attachments/{attachment_id}`

Files can be uploaded to Aha! as a sub-resource on any resource that supports them.
These resources support attachments:

- [Record descriptions](/api/resources/attachments/create_an_attachment_on_a_record_description) (the description of a feature, requirement, etc.)
- [Comments](/api/resources/attachments/create_an_attachment_on_a_comment)
- [To-dos](/api/resources/attachments/create_an_attachment_on_a_to-do)
- [Custom note fields](/api/resources/attachments/create_an_attachment_on_a_custom_note_field)

The format of an attachment is either a `multipart/form-data` upload with
the input name `attachment[data]` or a JSON payload pointing to an URL link:

```json
{
  "attachment": {
    "file_url": "https://www.aha.io/",
    "content_type": "text/html",
    "file_name": "home_page.html"
  }
}
```

## Path parameters

- `attachment_id` string, required

## Response `204`

No content - operation successful

---

[API](https://skmtc.net/aha/apis/aha-api.md) · [All operations](https://skmtc.net/aha/apis/aha-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aha/aha-api/revisions/6274be5aa6c5/schema)
