---
title: "Delete a Ledger"
method: DELETE
path: "/v1/organizations/{organization_id}/ledgers/{ledger_id}"
tags: ["Ledgers API"]
---

# Delete a Ledger

`DELETE /v1/organizations/{organization_id}/ledgers/{ledger_id}`

## Request

- Base URL: `https://identity.sandbox.lerian.net`
- URL: `https://identity.sandbox.lerian.net/v1/organizations/{organization_id}/ledgers/{ledger_id}`
- Auth: none required
- TypeScript: <https://skmtc.dev/lerian/apis/identity-plugin/docs/v1/organizations/:organization_id/ledgers/:ledger_id/delete.ts> (a function with typed inputs; its response is checked against the schema)

Use this endpoint to delete a Ledger. The Ledger will remain in our records and appear in the [List Ledgers](/en/reference/midaz/list-ledgers) and [Retrieve a Ledger](/en/reference/midaz/retrieve-a-ledger) endpoint responses, with the `deletedAt` field showing the deletion date.

## Path parameters

- `organization_id` string, uuid, required
- `ledger_id` string, uuid, required

## Headers

- `Content-Type` string
- `X-Request-Id` string, uuid
- `Authorization` string

## Response `204`

Indicates that the resource was successfully deleted.

## Other responses

- `400`
- `401`: Unauthorized
- `403`: Forbidden
- `404`
- `409`
- `500`: Internal Server Error

---

[API](https://skmtc.dev/lerian/apis/identity-plugin.md) - [All operations](https://skmtc.dev/lerian/apis/identity-plugin/llms.txt) - [OpenAPI document](https://skmtc.dev/lerian/apis/identity-plugin/revisions/25daba385532?raw)
