---
title: "Delete Taxonomy Block"
method: POST
path: "/extensions/roboledger/{graph_id}/operations/delete-taxonomy-block"
tags: ["RoboLedger: Taxonomy & Mapping"]
---

# Delete Taxonomy Block

`POST /extensions/roboledger/{graph_id}/operations/delete-taxonomy-block`

## Request

- Base URL: `https://api.robosystems.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.robosystems.ai/extensions/roboledger/{graph_id}/operations/delete-taxonomy-block`
- Auth: one of:
  - API key in header `X-API-Key`
  - HTTP bearer

Delete a taxonomy block and return a thin confirmation. `cascade_facts=True` also deletes Fact rows that reference the taxonomy's elements; default False fails the delete if such facts exist. Library-origin block types surface 501.

**Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.

## Path parameters

- `graph_id` string, required

## Headers

- `Idempotency-Key` string, nullable

## Request body

- DeleteTaxonomyBlockRequest: Request body for the `delete-taxonomy-block` operation. `cascade_facts=False` (default) fails the delete if any Fact rows reference elements in this taxonomy. `cascade_facts=True` deletes the referencing facts alongside the taxonomy; the response reports `facts_deleted`.
  - `taxonomy_id` string, required: The taxonomy to delete.
  - `cascade_facts` boolean: When true, also deletes any Fact rows referencing elements in this taxonomy. When false (default), the operation fails with 422 if such rows exist.
  - `reason` string, required: Human-readable justification (audit log).

## Response `200`

Successful Response

- OperationEnvelopeDeleteTaxonomyBlockResponse
  - `operation` string, required: Kebab-case operation name
  - `operationId` string, required: op_-prefixed ULID for audit and SSE correlation
  - `status` 'completed' | 'pending' | 'failed', required: Operation lifecycle state
  - `result` DeleteTaxonomyBlockResponse: Response for `delete-taxonomy-block`.
    - `deleted` true
    - `taxonomy_id` string, required
    - `name` string, required
    - `facts_deleted` integer
    - `cascade_applied` boolean
  - `at` string, required: ISO-8601 UTC timestamp
  - `createdBy` string, nullable: User ID that initiated the operation
  - `idempotentReplay` boolean: True when this envelope came from the idempotency cache — the underlying command did not execute again. False on fresh executions.

## Other responses

- `400`: Invalid request
- `401`: Authentication required
- `403`: Access denied
- `404`: Resource not found
- `409`: Idempotency-Key conflict — key reused with different body
- `422`: Validation error
- `429`: Rate limit exceeded
- `500`: Internal server error

---

[API](https://skmtc.dev/robosystems/apis/robosystems-api.md) · [All operations](https://skmtc.dev/robosystems/apis/robosystems-api/llms.txt) · [OpenAPI document](https://skmtc.dev/robosystems/apis/robosystems-api/revisions/e661e2d5ca6a?raw)
