# Tctl command to terminate all the workflows starting with \*abc\*

**URL:** <https://community.temporal.io/t/tctl-command-to-terminate-all-the-workflows-starting-with-abc/3755>\
**Category:** Community Support\
**Tags:** elasticsearch, tctl\
**Created:** [January 14, 2022, 5:36pm UTC](https://community.temporal.io/t/tctl-command-to-terminate-all-the-workflows-starting-with-abc/3755 "2022-01-14T17:36:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vikas\_NS](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/vikas_ns/32/1210_2.png) [@Vikas\_NS](https://community.temporal.io/u/Vikas_NS)\
**Post date:** [January 14, 2022, 5:36pm UTC](https://community.temporal.io/t/tctl-command-to-terminate-all-the-workflows-starting-with-abc/3755/1 "2022-01-14T17:36:30Z")

</div>

As part of performance testing,

we create a ton of workflows.

Some times these workflows get stuck and we would want to terminate them.

Is there a tctl command to terminate all the workflows starting with _abc_

---

<div class="post-metadata">

**Author:** ![maxim](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/maxim/32/8_2.png) [@maxim](https://community.temporal.io/u/maxim)\
**Post date:** [January 14, 2022, 7:26pm UTC](https://community.temporal.io/t/tctl-command-to-terminate-all-the-workflows-starting-with-abc/3755/2 "2022-01-14T19:26:47Z")

</div>

Does WorkflowID start from abc or workflow type?

Do you use ElasticSearch integration?

---

<div class="post-metadata">

**Author:** ![meiliang86](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/meiliang86/32/1504_2.png) [@meiliang86](https://community.temporal.io/u/meiliang86)\
**Post date:** [January 14, 2022, 7:45pm UTC](https://community.temporal.io/t/tctl-command-to-terminate-all-the-workflows-starting-with-abc/3755/3 "2022-01-14T19:45:30Z")

</div>

@Vikas_NS workflowIDs are keywords in ES, so we don’t support start with search.  
What is your criteria for stuck in this case?

---

<div class="post-metadata">

**Author:** ![alex](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/alex/32/15_2.png) [@alex](https://community.temporal.io/u/alex)\
**Post date:** [January 14, 2022, 9:31pm UTC](https://community.temporal.io/t/tctl-command-to-terminate-all-the-workflows-starting-with-abc/3755/4 "2022-01-14T21:31:30Z")

</div>

The only option would be to [add custom search attribute](https://docs.temporal.io/docs/content/how-to-add-a-custom-search-attribute-to-a-cluster-using-tctl/) of type `Text` and duplicate WorkflowId in it. But even in this case it won’t support queries like “start with” but it will support partial (by word) match.
