---
title: "Delete metadata by key"
method: DELETE
path: "/v2/{ledger}/transactions/{id}/metadata/{key}"
tags: ["ledger.v2"]
---

# Delete metadata by key

`DELETE /v2/{ledger}/transactions/{id}/metadata/{key}`

Delete metadata by key

## Path parameters

- `ledger` string, required
- `id` integer, required
- `key` string, required

## Headers

- `Idempotency-Key` string

## Response `204`

Key deleted

## Other responses

- `default` — Error

## Changes

- **2025-12-12** `2945092328b9` — 2 warning
  - added the new `SCHEMA_ALREADY_EXISTS` enum value to the `errorCode` response property for the response status `default`
  - added the new `SCHEMA_NOT_SPECIFIED` enum value to the `errorCode` response property for the response status `default`
- **2025-09-01** `6934578c1ac8` — 1 info
  - added the success response with the status `204`
- **2025-05-16** `8bb59440bb35` — 1 info
  - added the new optional `header` request parameter `Idempotency-Key`
- **2024-12-09** `7ee573f0087f` — 1 warning, 1 info
  - added the new `OUTDATED_SCHEMA` enum value to the `errorCode` response property for the response status `default`
  - removed the `BUCKET_OUTDATED` enum value from the `errorCode` response property for the response status `default`
- **2024-12-05** `d93e4ae21e38` — 1 warning
  - added the new `BUCKET_OUTDATED` enum value to the `errorCode` response property for the response status `default`

[Full history](https://skmtc.dev/formancehq/apis/ledger-api/changes/v2/:ledger/transactions/:id/metadata/:key/delete.md)

---

[API](https://skmtc.dev/formancehq/apis/ledger-api.md) · [All operations](https://skmtc.dev/formancehq/apis/ledger-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/formancehq/ledger-api/revisions/fe945da1b75d/schema)
