
Core Plugins and tasks Delete
CertifiedDelete a file from Kestra internal storage.
Core Plugins and tasks Delete
Certified
Delete a file from Kestra internal storage.
Removes the file at the given kestra:// URI. If errorOnMissing is true and the file doesn’t exist, the task fails.
Useful for cleaning temp artifacts after merges/downloads.
yaml
type: io.kestra.plugin.core.storage.DeleteExamples
Delete a file generated by another task.
yaml
id: delete_files
namespace: company.team
tasks:
- id: download
type: io.kestra.plugin.core.http.Download
uri: https://huggingface.co/datasets/kestra/datasets/raw/main/csv/orders.csv
- id: delete
type: io.kestra.plugin.core.storage.Delete
uri: "{{ outputs.download.uri }}"
Properties
uri *Requiredstring
The file to be deleted
Pebble expression referencing an Internal Storage URI e.g. {{ outputs.mytask.uri }}.
errorOnMissing booleanstring
Default
falseRaise an error if the file is not found
pluginDefaultsRef Non-dynamicstring
Reference (ref) of the pluginDefaults to apply to this task.
Outputs
deleted boolean
A flag for whether the file was deleted
uri string
Format
uriThe deleted file URI