DELETE
/forms/:id/fields/:fieldIdDelete 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/:fieldIdPath Parameters
Headers
| Header | Value |
|---|---|
Authorization | Bearer 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
| Status | Condition |
|---|---|
400 | Invalid fieldId format |
404 | Form not found or soft-deleted |
404 | Field 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.