Cancel all running workflows

Hi Temporal Team,
Is there a way to cancel all currently running workflows without having to terminate each one of them individually? Thanks.

You can use tctl batch terminate - Temporal CLI - tctl | Temporal documentation

1 Like

Tihomir,

Thanks for your reply. I tried the batch terminate option but it only works if the workflows were started as a batch. Is there another way to terminate a group of workflows that were not started as a batch? For example, workflows that were started on a given date? Thanks.

There is no “workflows started as a batch” concept in Temporal. You can terminate workflows based on any predicate that enhanced visibility supports. Note that it only works if you are using ElasticSearch.