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
The local file path to delete
Default
false
Raise an error if the file is not found
Default
true
Whether to include subdirectories
If true, the task will recursively delete files in all subdirectories.
Default
false
Whether the file was deleted