Delete a file or directory from the local filesystem.
yaml
type: "io.kestra.plugin.fs.local.Delete"
yaml
id: fs_local_delete
namespace: company.team
tasks:
- id: delete
type: io.kestra.plugin.fs.local.Delete
from: /data/uploads/file.txt
Dynamic
YES
The local file path to delete
Dynamic
NO
Default
false
Raise an error if the file is not found
Dynamic
NO
Default
true
Whether to include subdirectories
If true, the task will recursively delete files in all subdirectories.
Default
false
Whether the file was deleted