---
type: api
title: Cancel all active workflow executions
description: **Spaces method and path for this operation:**
url: https://www.elastic.co/elastic/docs-builder/docs/4371/api/doc/kibana/v9/operation/operation-post-workflows-workflow-workflowid-executions-cancel
resource: https://www.elastic.co/elastic/docs-builder/docs/4371/api/doc/kibana/v9/operation/operation-post-workflows-workflow-workflowid-executions-cancel
products:
  - Kibana
---

# Cancel all active workflow executions

Availability: 9.4+

- Server: `https://{kibana_url}`

## Paths

- `POST` `/api/workflows/workflow/{workflowId}/executions/cancel`
- `POST` `/s/{space_id}/api/workflows/workflow/{workflowId}/executions/cancel`

- [Api key auth](/elastic/docs-builder/docs/4371/api/doc/kibana/v9/authentication#apikeyauth)
- [Basic auth](/elastic/docs-builder/docs/4371/api/doc/kibana/v9/authentication#basicauth)

#### Path Parameters

- `workflowId` (string)
  Workflow ID

## Description

Refer to [Spaces](https://www.elastic.co/docs/deploy-manage/manage-spaces) for more information.

Request cancellation for all non-terminal executions of the given workflow in the current space.<br/><br/>[Required authorization] Route required privileges: workflowsManagement:cancelExecution.

## Response

Indicates a successful response

## Code Examples

#### Console

```console
POST kbn://api/workflows/workflow/{workflowId}/executions/cancel
```

#### curl

```curl
curl \
  -X POST "${KIBANA_URL}/api/workflows/workflow/{workflowId}/executions/cancel" \
  -H "Authorization: ApiKey ${API_KEY}" \
  -H "kbn-xsrf: true"
```

