---
title: "Delete Attachment"
method: DELETE
path: "/visits/{visit_id}/attachments/{attachment_id}"
tags: ["Visits"]
---

# Delete Attachment

`DELETE /visits/{visit_id}/attachments/{attachment_id}`

## Request

- Base URL: `https://v3.api.hypertrack.com`
- URL: `https://v3.api.hypertrack.com/visits/{visit_id}/attachments/{attachment_id}`
- Auth: one of:
  - HTTP basic
  - HTTP bearer
- TypeScript: <https://skmtc.dev/hypertrack/apis/hypertrack-api/docs/visits/:visit_id/attachments/:attachment_id/delete.ts> (a function with typed inputs; its response is checked against the schema)

Delete an attachment associated with a specific visit by ID.

## Path parameters

- `visit_id` string, required
- `attachment_id` string, required

## Request body

- DeleteAttachmentRequest

## Response `204`

Attachment deleted successfully

## Other responses

- `400`: Validation error
- `401`: Authentication error
- `404`: Not found

---

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