---
title: "Delete an unused class allocation"
method: DELETE
path: "/class-allocations/{id}"
tags: ["Accounting"]
---

# Delete an unused class allocation

`DELETE /class-allocations/{id}`

## Request

- Base URL: `https://ledgerhq.pro/api/v1`
- URL: `https://ledgerhq.pro/api/v1/class-allocations/{id}`
- Auth: one of:
  - HTTP bearer and API key in header `x-organization-id`
  - HTTP bearer and API key in header `x-organization-id`

Allocations referenced by feed rows or bank rules return 409; deactivate them instead.

## Path parameters

- `id` string, uuid, required

## Response `200`

{ data: { deleted: true, id } }

## Other responses

- `409`: Error response
- `default`: Error response

---

[API](https://skmtc.dev/ledgerhq-pro/apis/ledgerhq-bookkeeping-api.md) · [All operations](https://skmtc.dev/ledgerhq-pro/apis/ledgerhq-bookkeeping-api/llms.txt) · [OpenAPI document](https://skmtc.dev/ledgerhq-pro/apis/ledgerhq-bookkeeping-api/revisions/9a8269f0a586?raw)
