---
title: "DELETE /api/database/fields/{field_id}/"
method: DELETE
path: "/api/database/fields/{field_id}/"
tags: ["Database table fields"]
---

# DELETE /api/database/fields/{field_id}/

`DELETE /api/database/fields/{field_id}/`

Deletes the existing field if the authorized user has access to the related database's workspace. Note that all the related data to that field is also deleted. Primary fields cannot be deleted because their value represents the row. If deleting the field causes other fields to change then the specificinstances of those fields will be included in the related fields response key.

## Path parameters

- `field_id` integer, required

## Headers

- `ClientSessionId` string, uuid
- `ClientUndoRedoActionGroupId` string, uuid

## Response `200`

- RelatedFields
  - `related_fields` Field[], required — A list of related fields which also changed.
    - `id` integer, required
    - `table_id` integer, required
    - `name` string, required
    - `order` integer, required — Lowest first.
    - `type` string, required — The type of the related field.
    - `primary` boolean — Indicates if the field is a primary field. If `true` the field cannot be deleted and the value should represent the whole row.
    - `read_only` boolean, required — Indicates whether the field is a read only field. If true, it's not possible to update the cell value.
    - `immutable_type` boolean, required — Indicates whether the field type is immutable. If true, then it won't be possible to change the field type via the API.
    - `immutable_properties` boolean, required — Indicates whether the field properties are immutable. If true, then it won't be possible to change the properties and the type via the API.
    - `description` string, nullable — Field description
    - `database_id` integer, required — The ID of the database this field belongs to.
    - `workspace_id` integer, required — The ID of the workspace this field belongs to.
    - `db_index` boolean — If true, then an index will be added to the Baserow field to increase lookup and filter speed. Note that this comes at a performance cost when creating the row and updating the cell.
    - `field_constraints` string, required — The constraints applied to this field.

## Other responses

- `400`
- `404`

---

[API](https://skmtc.net/baserow/apis/baserow-api-spec.md) · [All operations](https://skmtc.net/baserow/apis/baserow-api-spec/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/baserow/baserow-api-spec/versions/0c490e5b0c7f/schema)
