---
title: "Delete bucket"
method: DELETE
path: "/v2/_/buckets/{bucket}"
tags: ["ledger.v2"]
---

# Delete bucket

`DELETE /v2/_/buckets/{bucket}`

Delete a bucket by marking all ledgers in the bucket as deleted (soft delete). All ledgers in the bucket will have their deleted_at field set to the current timestamp.

## Response `204`

Bucket deleted

## Other responses

- `404` — Bucket not found
- `default` — Error

---

[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)
