IronFlowDocs

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_successtrue when 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

IronFlow documentation

Find the next step

Type a keyword to search the documentation.

to move · Enter to open · Esc to close