
Core Plugins and tasks PurgeKV
CertifiedPurge keys from the KV store.
Core Plugins and tasks PurgeKV
Purge keys from the KV store.
Deletes keys across Namespaces using a purge behavior (default: expired-only). Filter by explicit namespaces or namespacePattern, optional keyPattern, and include/exclude child namespaces.
type: io.kestra.plugin.core.kv.PurgeKVExamples
Delete expired keys globally for a specific namespace, with or without including child namespaces.
id: purge_kv_store
namespace: system
tasks:
- id: purge_kv
type: io.kestra.plugin.core.kv.PurgeKV
behavior:
type: key
expiredOnly: true
namespaces:
- company
includeChildNamespaces: true
Properties
assets
Assets this task consumes as inputs or produces as outputs, for lineage tracking and the asset graph (Enterprise Edition). A flow declaring this property on a task is rejected in the open-source edition.
io.kestra.core.models.assets.AssetsDeclaration
IGNOREFAILWARNAsset failure behavior
Behavior applied to the task state when a declared asset fails to render, emit, or be persisted (e.g. a lock conflict): FAIL escalates it to FAILED, WARN (default) warns it if it would otherwise succeed, IGNORE leaves the state untouched.
Whether to auto-register assets referenced dynamically at runtime that are not statically declared in inputs or outputs.
The assets consumed as inputs.
io.kestra.core.models.assets.AssetIdentifier
1The assets produced as outputs.
io.kestra.plugin.ee.assets.Dataset
1150{}1150io.kestra.plugin.ee.assets.File
1150{}1150io.kestra.plugin.ee.assets.Table
1150{}1150io.kestra.plugin.ee.assets.VM
1150{}1150io.kestra.core.models.assets.External
1150{}1150io.kestra.core.models.assets.Custom
11501Custom asset type
{}1150behavior string
{"type":"key","expiredOnly":true}Purge behavior
Defines how keys are purged.
io.kestra.plugin.core.kv.KvPurgeBehavior
includeChildNamespaces booleanstring
trueDelete keys from child namespaces
Defaults to true. This means that if you set namespaces to company, it will also delete keys from company.team, company.data, etc.
keyPattern string
Key pattern, e.g. 'AI_*'
Delete only keys matching the glob pattern.
namespacePattern string
Glob pattern for the namespaces to delete keys from
If not set (e.g., AI_*), all namespaces will be considered. Can't be used with namespaces - use one or the other.
namespaces array
List of namespaces to delete keys from
If not set, all namespaces will be considered. Can't be used with namespacePattern - use one or the other.
Outputs
size integer
The number of purged KV pairs