DELETE/forms/:id/fields/:fieldId

Delete Field

Remove a field from a form

Scope: FORMS_WRITE

Overview

Removes a field from the form's schema. Any conditional logic rules in other fields or sections that reference the deleted field are automatically cleaned up.

Request

DELETE/forms/:id/fields/:fieldId

Path Parameters

Headers

HeaderValue
AuthorizationBearer fxk_live_<your-api-key>

Example Request

curl -X DELETE "https://api.formfex.com/api/v1/public/forms/FORM_ID/fields/FIELD_ID" \
  -H "Authorization: Bearer $FORMFEX_API_KEY"

Response

Error Cases

StatusCondition
400Invalid fieldId format
404Form not found or soft-deleted
404Field not found in the form schema

Conditional Logic Cleanup

When a field is deleted, all references to it in conditional logic rules (on both fields and sections) are automatically removed. If removing the reference leaves a condition group empty, that group is pruned. If all condition groups are pruned, the conditionalLogic property is removed entirely from the affected field or section.