---
title: "Delete a field definition"
method: DELETE
path: "/api/cases/field_definitions/{field_definition_id}"
tags: ["cases"]
---

# Delete a field definition

`DELETE /api/cases/field_definitions/{field_definition_id}`

**Spaces method and path for this operation:**

<div><span class="operation-verb delete">delete</span>&nbsp;<span class="operation-path">/s/{space_id}/api/cases/field_definitions/{field_definition_id}</span></div>

Refer to [Spaces](https://www.elastic.co/docs/deploy-manage/manage-spaces) for more information.

Deletes a field definition. You must have the "Manage templates" sub-privilege for the Cases feature of the owning solution. A field definition cannot be deleted while it is referenced by an active template or linked to an active custom field in the Cases configuration. Requires the Cases feature to be enabled in the space.

## Path parameters

- `field_definition_id` string, required

## Response `204`

The field definition was deleted.

## Other responses

- `401` — Authorization information is missing or invalid.
- `403` — The user does not have the manage templates privilege for the owner.
- `404` — The field definition was not found.
- `409` — The field definition is referenced by one or more active templates, or is linked to an active custom field in the Cases configuration.

---

[API](https://skmtc.dev/elastic/apis/kibana-apis.md) · [All operations](https://skmtc.dev/elastic/apis/kibana-apis/llms.txt) · [OpenAPI document](https://skmtc.dev/elastic/apis/kibana-apis/revisions/84f30e7da461?raw)
