Skip to main content
Version: 3.3.1

remove

Remove fields

It is not an error to remove a non-existent field

Example: unconditional removal

input:

{"one":1,"two":2}

action:

remove:
fields:
- two

output:

{"one":1}

Example: conditional removal

input:

{"one":1,"two":1}
{"one":1,"two":2}

action:

remove:
condition: two >= 2
fields:
- two

output:

{"one":1,"two":1}
{"one":1}

Field NameDescriptionTypeDefault
warn-on-missingEmit a warning if a field is missing but was expected to be removedboolfalse
conditionOnly run this action if the condition the specified condition is metexpression-
fieldsThe list of fields that should be removed if presentarray of fields-

warn-on-missing

Emit a warning if a field is missing but was expected to be removed

Type: bool

condition

Only run this action if the condition the specified condition is met

Type: expression

fields

The list of fields that should be removed if present

Type: array of fields