---
title: "Delete a transaction file"
method: DELETE
path: "/v1/transactions/{transaction_id}/files/{file_id}"
tags: ["Transaction"]
---

# Delete a transaction file

`DELETE /v1/transactions/{transaction_id}/files/{file_id}`

## Request

- Base URL: `https://api.cardda.com`
- URL: `https://api.cardda.com/v1/transactions/{transaction_id}/files/{file_id}`
- Auth: HTTP bearer

Purges an attached file from the transaction's documentation. Responds `404` when the file
does not belong to the documentation, otherwise `204 No Content`.

## Path parameters

- `transaction_id` string, uuid, required
- `file_id` string, uuid, required

## Headers

- `company-id` string, uuid, required

## Response `204`

File deleted

## Other responses

- `401`: Unauthorized
- `404`: File not found

---

[API](https://skmtc.dev/cardda/apis/accounting-api.md) - [All operations](https://skmtc.dev/cardda/apis/accounting-api/llms.txt) - [OpenAPI document](https://skmtc.dev/cardda/apis/accounting-api/revisions/49cf78d0f7ab?raw)
