---
title: "Delete custom field"
method: DELETE
path: "/public/v2/custom-fields/{custom_field_id}/"
tags: ["Custom Fields"]
---

# Delete custom field

`DELETE /public/v2/custom-fields/{custom_field_id}/`

Delete a custom field definition. Fails with 422 if any record already has a value stored against this field — clear those values first, or archive the field via `is_active=false` instead.

## Path parameters

- `custom_field_id` integer, required

## Headers

- `Idempotency-Key` string

## Response `200`

OK

- SuccessSchema
  - `success` true
  - `errors` object

## Other responses

- `400` — Bad Request
- `404` — Not Found
- `422` — Unprocessable Content
- `500` — Internal Server Error

## Changes

- **2026-08-12** `34b7cf5b4b6c` — 1 info
  - added the new optional `header` request parameter `Idempotency-Key`

[Change history](https://skmtc.dev/dualentry/apis/dualentry-public-api/changes/public/v2/custom-fields/:custom_field_id/delete.md)

---

[API](https://skmtc.dev/dualentry/apis/dualentry-public-api.md) · [All operations](https://skmtc.dev/dualentry/apis/dualentry-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/dualentry/dualentry-public-api/revisions/eddf3ef279e2/schema)
