Delete an execution.

This task will delete an execution and optionally propagate the delete to execution logs, metrics and files in the internal storage.

yaml
type: "io.kestra.plugin.kestra.executions.Delete"

Delete a specific execution by ID

yaml
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

The execution ID to delete

The ID of the execution to delete. It's not allowed to delete the current execution.

Authentication information.

Default true

Whether to delete execution logs

Default true

Whether to delete execution metrics

Default true

Whether to delete execution files in the internal storage

Kestra API URL. If null, uses 'kestra.url' from configuration. If that is also null, defaults to 'http://localhost: 8080'.

The tenant ID to use for the request, defaults to current tenant.

API token

Password for HTTP basic authentication

Username for HTTP basic authentication