Skip to main content

Remove Fields

Remove event fields with the remove action.

name: example-remove-fields

input:
echo:
json: true
event: |
{"initialField": "initialValue"}

actions:
- remove:
# by default, no warning is emitted when
# attempting to remove a non-existent field
warn-on-missing: false
# list of fields to remove
fields:
- initialField

output:
print: STDOUT

# output:
# {}