---
type: api
title: Bulk delete workflows
description: **Spaces method and path for this operation:**
url: https://www.elastic.co/elastic/docs-builder/docs/4371/api/doc/kibana/operation/operation-delete-workflows
resource: https://www.elastic.co/elastic/docs-builder/docs/4371/api/doc/kibana/operation/operation-delete-workflows
products:
  - Kibana
---

# Bulk delete workflows

Availability: 9.4+

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

## Paths

- `DELETE` `/api/workflows`
- `DELETE` `/s/{space_id}/api/workflows`

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

## Description

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

Delete multiple workflows by their IDs.<br/><br/>[Required authorization] Route required privileges: workflowsManagement:delete.

## Query String Parameters

- `acknowledgeAclLoss` (boolean · default: false)
  Confirm that permanent deletion removes workflow access controls.
- `force` (boolean · default: false)
  When true, permanently deletes the workflows (hard delete) instead of soft-deleting them. The workflow IDs become available for reuse.

## Request Body

`application/json`

- `ids` ([] string · max: 1000) — required
  Array of workflow IDs to delete.

## Response

Indicates a successful response

## Code Examples

#### Console

```console
DELETE kbn://api/workflows
{
  "ids": ["workflow-c3d4e5f6-a7b8-9012-cdef-234567890123", "workflow-d4e5f6a7-b8c9-0123-defa-345678901234"]
}
```

#### curl

```curl
curl \
  -X DELETE "${KIBANA_URL}/api/workflows" \
  -H "Authorization: ApiKey ${API_KEY}" \
  -H "kbn-xsrf: true" \
  -H "Content-Type: application/json" \
  -d '{
    "ids": ["workflow-c3d4e5f6-a7b8-9012-cdef-234567890123", "workflow-d4e5f6a7-b8c9-0123-defa-345678901234"]
  }'
```

#### curl

```curl
curl \
  -X DELETE "${KIBANA_URL}/api/workflows?force=true&acknowledgeAclLoss=true" \
  -H "Authorization: ApiKey ${API_KEY}" \
  -H "kbn-xsrf: true" \
  -H "Content-Type: application/json" \
  -d '{
    "ids": ["workflow-c3d4e5f6-a7b8-9012-cdef-234567890123", "workflow-d4e5f6a7-b8c9-0123-defa-345678901234"]
  }'
```

## Response Examples

#### Bulk delete workflows response

Example response after deleting multiple workflows

```json
{
  "deleted": 2,
  "failures": [],
  "total": 2
}
```

