---
title: "Delete a single attachment on a transaction"
method: DELETE
path: "/transactions/{transactionId}/files/{fileId}"
tags: ["transactions"]
---

# Delete a single attachment on a transaction

`DELETE /transactions/{transactionId}/files/{fileId}`

## Request

- Base URL: `https://api.moneyhub.co.uk/v3`
- URL: `https://api.moneyhub.co.uk/v3/transactions/{transactionId}/files/{fileId}`
- Auth: API key in header `Authorization`

Requires **transactions:read:all** and either of **transactions:write** or **transactions:write:all** scopes.

## Path parameters

- `transactionId` string, uuid, required
- `fileId` string, required

## Response `204`

Successful Transaction Response

## Other responses

- `401`: Unsuccessful Response - Not authorised - Missing authorization header - Invalid access Token
- `403`: Unsuccessful Response - Forbidden - Invalid scopes
- `404`: Unsuccessful Response - Resource Not found

---

[API](https://skmtc.dev/moneyhubenterprise/apis/moneyhub-data-api-v3.md) - [All operations](https://skmtc.dev/moneyhubenterprise/apis/moneyhub-data-api-v3/llms.txt) - [OpenAPI document](https://skmtc.dev/moneyhubenterprise/apis/moneyhub-data-api-v3/revisions/2e08b5dbee56?raw)
