How to Cancel In Progress Flow ExecutionsDescriptionNormally Flows do not need to be manually stopped or cancelled as they'll execute and eventually reach the Flow End point. However it's possibly to accidentally create Flows with logic flaws that get themselves into an infinite loop (accidentally creating infinite loops is possible in any programming language).Release or EnvironmentAll ServiceNow releases that support FlowsInstructionsTo cancel all Flow Executions of a Flow that's running (State=In Progress) run the following in Scripts - Background. Replace NAME OF FLOW TO CANCEL HERE with the name of the Flow (as it appears under Properties->Name when viewing the Flow in Flow Designer): var now_GR = new GlideRecord("sys_flow_context"); now_GR.addQuery("name", "NAME OF FLOW TO CANCEL HERE"); now_GR.query(); while (now_GR.next()) { sn_fd.FlowAPI.cancel(now_GR.getUniqueValue(), 'Canceling Test Flows'); } Additional InformationImportant - Please Test on Sub-Prod First The above script was successfully used to cancel a few thousand Flow Executions on a customer instance. However this code hasn't been tested or verified by ServiceNow developers and is not officially supported. Please test this script carefully first on a sub-production instance before using on production.