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
Outputs
deleted
- Type: boolean
If the files was really deleted