---
title: Cancel Task Runs
subtitle: How to cancel a run
slug: running-tasks/cancel-runs
---

A task that has not started or is in the running state can be cancelled through the UI. It can also be done with the [Cancel Run](/api-reference/api-reference/agent/cancel-run) endpoint.

<img src="../images/run_tasks/cancel_run.png" />



