# Delete custom ledger

## Deletes a custom ledger by ID.

> Permanently removes the custom ledger and all associated charges. This operation cannot be undone.

```json
{"openapi":"3.0.1","info":{"title":"Marketplace API","version":"5.0.5201-gb9762151"},"servers":[{"url":"https://api.platform.softwareone.com"}],"paths":{"/public/v1/billing/custom-ledgers/{id}":{"delete":{"tags":["CustomLedgers"],"summary":"Deletes a custom ledger by ID.","description":"Permanently removes the custom ledger and all associated charges. This operation cannot be undone.","parameters":[{"name":"id","in":"path","description":"The ID of the custom ledger to delete.","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"No Content"},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"500":{"description":"Internal Server Error"}}}}},"components":{"schemas":{"ProblemDetails":{"type":"object","properties":{"type":{"type":"string","nullable":true},"title":{"type":"string","nullable":true},"status":{"type":"integer","format":"int32","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}},"additionalProperties":{}}}}}
```
