# Terminating a workflow

**URL:** <https://community.temporal.io/t/terminating-a-workflow/8963>\
**Category:** Community Support\
**Tags:** workflow-options, typescript-sdk, workflow-config\
**Created:** [July 26, 2023, 8:53am UTC](https://community.temporal.io/t/terminating-a-workflow/8963 "2023-07-26T08:53:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kishore\_kumar](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/kishore_kumar/32/4015_2.png) [@kishore\_kumar](https://community.temporal.io/u/kishore_kumar)\
**Post date:** [July 26, 2023, 8:53am UTC](https://community.temporal.io/t/terminating-a-workflow/8963/1 "2023-07-26T08:53:31Z")

</div>

Can we terminate a running workflow through code., If yes how can we achieve it using TypeScript sdk?

---

<div class="post-metadata">

**Author:** ![jwatkins](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/jwatkins/32/2581_2.png) [@jwatkins](https://community.temporal.io/u/jwatkins)\
**Post date:** [July 26, 2023, 2:17pm UTC](https://community.temporal.io/t/terminating-a-workflow/8963/2 "2023-07-26T14:17:49Z")

</div>

Using the TS SDK client API, you can make a handle on your Workflow, then call `terminate()` on it.

For example:

```auto
client.workflow.getHandle('my-workflow-id').terminate();

```
