Core Plugins and tasks UnsetVariables

Core Plugins and tasks UnsetVariables

Certified

Remove execution variables.

Renders a list of keys and deletes them from vars. Supports dotted paths for nested maps. If ignoreMissing is false (default), missing keys cause an error.

Useful for cleaning sensitive or transient data mid-flow.

yaml
type: io.kestra.plugin.core.execution.UnsetVariables

Set and later unset variables

yaml
id: variables
namespace: company.team

variables:
  name: World

tasks:
  - id: set_vars
    type: io.kestra.plugin.core.execution.SetVariables
    variables:
      message: Hello
      name: Loïc
  - id: hello
    type: io.kestra.plugin.core.log.Log
    message: "{{ vars.message }} {{ vars.name }}"
  - id: unset_variables
    type: io.kestra.plugin.core.execution.UnsetVariables
    variables:
      - message
      - name
Properties
SubTypestring

The variables

Defaultfalse

Flag specifying whether to ignore missing variables

Reference (ref) of the pluginDefaults to apply to this task.