delete_file
Delete a file.
Parameters
- pathstringrequired
- Path to the file to delete. Supports
${ctx.key}interpolation.
Context Output
delete_file_path— The resolved file path (after interpolation).delete_file_success—truewhen the file was deleted successfully.
Example
local flow = Flow.new("delete_demo")
flow:step("delete", nodes.delete_file({
path = "/tmp/ironflow_test.txt"
}))
flow:step("done", nodes.log({
message = "Deleted ${ctx.delete_file_path}",
level = "info"
})):depends_on("delete")
return flow