> ## Documentation Index
> Fetch the complete documentation index at: https://cobalt-55-abhishek.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Clear Config Field Value

> Clear the value of a single config field.

Clear the value of a single config field, optionally scoped to a specific workflow. The field returns to its unset/default state.

## Authentication

This endpoint is scoped to a linked account, so it accepts **either** authentication method.

**Option 1 — API key**

<ParamField header="x-api-key" type="string">Your Refold API key.</ParamField>
<ParamField header="linked_account_id" type="string">The linked account.</ParamField>

**Option 2 — Session token**

<ParamField header="Authorization" type="string">Session token. **Format:** `Bearer YOUR_SESSION_TOKEN`</ParamField>

## Headers

<ParamField header="slug" type="string" required>The app slug. **Example:** `hubspot`</ParamField>

## Path Parameters

<ParamField path="fieldId" type="string" required>The field ID to clear.</ParamField>

## Query Parameters

<ParamField query="config_id" type="string">Config to scope to. Defaults to the linked account's config.</ParamField>
<ParamField query="workflow_id" type="string">Scope to a specific workflow.</ParamField>

## Response

<Tabs>
  <Tab title="200 OK">
    Returns the field with its value cleared.
  </Tab>

  <Tab title="404 Not Found">
    <ResponseField name="status_code" type="integer">HTTP status code.</ResponseField>
    <ResponseField name="http_error_type" type="string">Error category.</ResponseField>
    <ResponseField name="error_code" type="string">Internal error code.</ResponseField>
    <ResponseField name="message" type="string">Human-readable error description.</ResponseField>
  </Tab>
</Tabs>

<ResponseExample>
  ```json 200 theme={null}
  {
    "id": "699fec7a5bd27ed2af7243ad",
    "name": "Select",
    "field_type": "select",
    "multiple": true,
    "options": [
      { "name": "A", "value": "A" },
      { "name": "B", "value": "B" },
      { "name": "C", "value": "C" }
    ],
    "defaultValue": ""
  }
  ```

  ```json 404 theme={null}
  {
    "status_code": 404,
    "http_error_type": "NOT_FOUND",
    "error_code": "SERVER_ERROR",
    "message": "Config with config id user_12345 not found"
  }
  ```
</ResponseExample>

<RequestExample>
  ```bash cURL (API key) theme={null}
  curl -X DELETE "https://app.refold.ai/api/v2/public/config/field/{fieldId}" \
    -H "x-api-key: YOUR_API_KEY" \
    -H "linked_account_id: YOUR_LINKED_ACCOUNT_ID" \
    -H "slug: {slug}"
  ```

  ```bash cURL (session token) theme={null}
  curl -X DELETE "https://app.refold.ai/api/v2/public/config/field/{fieldId}" \
    -H "Authorization: Bearer YOUR_SESSION_TOKEN" \
    -H "slug: {slug}"
  ```
</RequestExample>
