Skip to content

exit()

Run cleanup logic before a Flow script is reloaded or deleted.

Updated View as Markdown
For humans
Flow functionFlow Pro scriptingBase functions

This article covers the following platforms

exit runs before Flow reloads or deletes your script. Clear your loops, intervals, and timeouts here.

exit(() => {
  // your exit code here
});
Navigation

Type to search…

↑↓ navigate↵ selectEsc close