> ## Documentation Index
> Fetch the complete documentation index at: https://docs.markifact.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Remove Fields

> Deletes specified data fields from datasets or records

Deletes specified data fields from datasets or records

|                     |                           |
| ------------------- | ------------------------- |
| **App**             | Utilities                 |
| **Operation ID**    | `utilities_remove_fields` |
| **Type**            | Action                    |
| **Connection**      | None                      |
| **Credits per run** | Free                      |

## Inputs

| Field              | Type                       | Required | Default | Description                                                                                                                                  |
| ------------------ | -------------------------- | -------- | ------- | -------------------------------------------------------------------------------------------------------------------------------------------- |
| `data`             | any                        | Yes      | -       | The data containing fields you want to remove                                                                                                |
| `removal_mode`     | string or SelectableOption | Yes      | -       | Choose how you want to specify fields to remove. 'specific' → provide `field_names` to delete, 'keep' → provide `keep_field_names` to retain |
| `field_names`      | array of string            | No       | -       | Enter the names of fields to remove from your data                                                                                           |
| `keep_field_names` | array of string            | No       | -       | Enter the names of fields to keep, all others will be removed                                                                                |

### SelectableOption

| Field   | Type   | Required | Default | Description |
| ------- | ------ | -------- | ------- | ----------- |
| `value` | string | Yes      | -       |             |
| `label` | string | Yes      | -       |             |

## Output

**Type**: `List[Dict]`

Returns data with specified fields removed.

**Fields**: dynamic (depend on the inputs)
