New

The executive guide to generative AI

Read more
IMPORTANT: This documentation is no longer updated. Refer to Elastic's version policy and the latest documentation.

Remove Processor

edit

Removes existing fields. If one field doesn’t exist, an exception will be thrown.

Table 42. Remove Options

Name Required Default Description

field

yes

-

Fields to be removed

ignore_missing

no

false

If true and field does not exist or is null, the processor quietly exits without modifying the document

Here is an example to remove a single field:

{
  "remove": {
    "field": "foo"
  }
}

To remove multiple fields, you can use the following query:

{
  "remove": {
    "field": ["foo", "bar"]
  }
}
Was this helpful?
Feedback