---
title: "Delete credit block"
method: DELETE
path: "/credit_blocks/{block_id}"
tags: ["Credit"]
---

# Delete credit block

`DELETE /credit_blocks/{block_id}`

This endpoint deletes a credit block by its ID.

When a credit block is deleted:
- The block is removed from the customer's credit ledger.
- Any usage of the credit block is reversed, and the ledger is replayed as if the block never existed.
- If invoices were generated from the purchase of the credit block, they will be deleted if in draft status,
  voided if issued, or a credit note will be issued if the invoice is paid.

<Note>
Issued invoices that had credits applied from this block will not be regenerated, but the ledger will
reflect the state as if credits from the deleted block were never applied.
</Note>

## Path parameters

- `block_id` string, required

## Response `204`

No Content

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `404` — Not Found
- `409` — Conflict
- `413` — Content Too Large
- `429` — Too Many Requests
- `500` — Internal Server Error

---

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