🚀 New! Kestra raises $3 million to grow Learn more

Delete Delete

yaml
type: "io.kestra.core.tasks.states.Delete"

Delete a state from the state store.

Examples

Delete the default state for the current flow

yaml
id: getState
type: io.kestra.core.tasks.states.Delete

Delete the myState state for the current flow

yaml
id: getState
type: io.kestra.core.tasks.states.Delete
name: myState

Properties

name

  • Type: string
  • Dynamic: ✔️
  • Required: ✔️
  • Default: default

The name of state file

errorOnMissing

  • Type: boolean
  • Dynamic: ✔️
  • Required:
  • Default: false

raise an error if the state is not found

namespace

  • Type: boolean
  • Dynamic: ✔️
  • Required:
  • Default: false

Share state for the current namespace

By default, the state is isolated by namespace and flow, setting to true will allow to share the state between the same namespace

taskrunValue

  • Type: boolean
  • Dynamic: ✔️
  • Required:
  • Default: true

Isolate with taskrun.value the state

By default, the taskrun.value (during iteration with each) will isolated the state, setting to false will allow to use the same one for iteration.

Outputs

deleted

  • Type: boolean

If the files was really deleted