Delete an execution.
This task will delete an execution and optionally propagate the delete to execution logs, metrics and files in the internal storage.
type: "io.kestra.plugin.kestra.executions.Delete"Examples
Delete a specific execution by ID
id: delete-specific-execution
namespace: company.team
tasks:
- id: delete_execution
type: io.kestra.plugin.kestra.executions.Delete
executionId: "{{ vars.targetExecutionId }}"
deleteLogs: true
deleteMetrics: true
deleteStorage: true
auth:
apiToken: "{{ secrets('KESTRA_API_TOKEN') }}"
Properties
executionId *Requiredstring
The execution ID to delete
The ID of the execution to delete. It's not allowed to delete the current execution.
auth Non-dynamicAbstractKestraTask-Auth
Authentication information.
deleteLogs booleanstring
trueWhether to delete execution logs
deleteMetrics booleanstring
trueWhether to delete execution metrics
deleteStorage booleanstring
trueWhether to delete execution files in the internal storage
kestraUrl string
Kestra API URL. If null, uses 'kestra.url' from configuration. If that is also null, defaults to 'http://localhost: 8080'.
tenantId string
The tenant ID to use for the request, defaults to current tenant.
Definitions
io.kestra.plugin.kestra.AbstractKestraTask-Auth
apiToken string
API token
password string
Password for HTTP basic authentication
username string
Username for HTTP basic authentication