Core Plugins and tasks Delete

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.Delete

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

The file to be deleted

Defaultfalse

Raise an error if the file is not found

Reference (ref) of the pluginDefaults to apply to this task.

A flag for whether the file was deleted

Formaturi

The deleted file URI