PurgeExecutions
Purge executions, logs, metrics, and storage files.
PurgeExecutions
Purge executions, logs, metrics, and storage files.
yaml
type: io.kestra.plugin.core.execution.PurgeExecutionsExamples
yaml
id: purgeexecutions
type: io.kestra.plugin.core.execution.PurgeExecutions
id: purge_exections
namespace: system
tasks:
- id: purge
type: io.kestra.plugin.core.execution.PurgeExecutions
endDate: "{{ now() | dateAdd(-1, 'MONTHS') }}"
states:
- KILLED
- FAILED
- WARNING
- SUCCESS
Properties
endDate *Requiredstring
batchSize integerstring
Default
100flowId string
namespace string
purgeExecution booleanstring
Default
truepurgeLog booleanstring
Default
truepurgeMetric booleanstring
Default
truepurgeStorage booleanstring
Default
truestartDate string
states array
SubTypestring
Possible Values
CREATEDSUBMITTEDRUNNINGPAUSEDRESTARTEDKILLINGSUCCESSWARNINGFAILEDKILLEDCANCELLEDQUEUEDRETRYINGRETRIEDSKIPPEDBREAKPOINTRESUBMITTEDOutputs
executionsCount integer
Default
0logsCount integer
Default
0metricsCount integer
Default
0storagesCount integer
Default
0