Bulk/mass cancel active contextsIssue Bulk cancellation of active workflow contexts can be accomplished with a script using cancelContext().CauseA large amount of workflow active context records executing ResolutionThe script below can be used to filter for specific active context records on the 'wf_context' table in order to bulk delete/cancel a large amount of active context records. Rather than creating a list query manually, open 'wf_context' in list view and construct the desired filter. Right-click the end of the filter breadcrumb and click 'copy query.' Paste this into addEncodedQuery, ensuring the query is enclosed in either ' ' or " ". Navigate to Scripts - BackgroundPaste the following text: var w = new Workflow();var now_GR = new GlideRecord('wf_context');now_GR.addEncodedQuery(' ');now_GR.query() while (now_GR.next()) {w.cancelContext(now_GR);} Click 'Run script' Related LinksPlease refer to the following documentation which can provide further information: cancelContext()Querying tablesGenerate an encoded query string through filteraddEncodedQuery()