Remove many fields
remove_fieldsPermanently delete multiple fields by ID from the active workspace in a single batch mutation.
ID-list, partial-failure & persistence semantics: deduplicates `field_ids`,
deletes every matching field from `workspace_id`, and commits the updated
workspace state immediately. Returns `{"removed": <count>, "fields_remaining": <count>}`.
Any ID in `field_ids` that does not exist in the workspace is ignored during
deletion and reported in sorted `unknown_field_ids` while all valid IDs in
the batch are still removed (no error is raised for unknown IDs). Deletion is
irreversible within the active workspace — removed fields can only be
recovered via `add_field` or a fresh `open_pdf` call, and saved account
templates are not altered unless `save_template` is called afterward.
When to use:
- Use `remove_fields` when deleting an explicit list of 2 or more known
false-positive `field_id`s at once.
- Use `remove_field` when deleting a single `field_id`.
- Use `prune_fields` for criteria-based bulk removal by `confidence_below`,
`width_below`, `height_below`, `field_type`, or `page_index` instead of
listing individual IDs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| field_ids | Yes | List of field IDs (from `open_pdf` or `list_fields`, e.g. `['p0_f2', 'p0_f5']`) to permanently remove from the workspace. Duplicate IDs are deduplicated; unknown IDs are ignored and returned in `unknown_field_ids`. | |
| workspace_id | Yes | Active workspace ID returned by `open_pdf` (`summary.workspace_id`). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||