---
title: "delete_extraction_schema"
method: DELETE
path: "/v1/extraction-schemas/{schema_id}"
tags: ["extraction-schemas"]
---

# delete_extraction_schema

`DELETE /v1/extraction-schemas/{schema_id}`

## Request

- Base URL: `https://ndi-api.nace.ai`
- URL: `https://ndi-api.nace.ai/v1/extraction-schemas/{schema_id}`
- Auth: API key in header `X-API-Key`
- TypeScript: <https://skmtc.dev/nace/apis/ndi-platform-api/docs/v1/extraction-schemas/:schema_id/delete.ts> (a function with typed inputs; its response is checked against the schema)

Delete a schema family you created, with every version. Cost class: fast.

The family stops listing and resolving at once: ``GET`` answers 404, and an
Extract naming it fails ``schema_not_found``. Jobs accepted before the delete
keep the copy of the schema they took at accept time and finish normally;
their results still name the ``schema_id`` and ``schema_version`` they used.
Deleting a family that is already deleted succeeds again. Platform schemas,
and another tenant's or another external account's, answer 404.

## Path parameters

- `schema_id` string, required: Stable schema family id (``sch_...``).

## Response `204`

Successful Response

## Other responses

- `504`: Gateway Timeout
- `default`: Typed error envelope used by every 4xx and 5xx. ``error.code`` distinguishes the failure; HTTP status is a consequence of the code.

---

[API](https://skmtc.dev/nace/apis/ndi-platform-api.md) - [All operations](https://skmtc.dev/nace/apis/ndi-platform-api/llms.txt) - [OpenAPI document](https://skmtc.dev/nace/apis/ndi-platform-api/revisions/d002a3589a67?raw)
