---
type: api
title: Delete a workflow
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-workflow-id
resource: https://www.elastic.co/elastic/docs-builder/docs/4371/api/doc/kibana/operation/operation-delete-workflows-workflow-id
products:
  - Kibana
---

# Delete a workflow

Availability: 9.4+

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

## Paths

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

- [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)

#### Path Parameters

- `id` (string · max: 255)
  Workflow ID

## Description

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

Delete a single workflow by its ID.<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 workflow (hard delete) instead of soft-deleting it. The workflow ID becomes available for reuse.

## Response

Indicates a successful response

## Code Examples

#### Console

```console
DELETE kbn://api/workflows/workflow/{id}
```

#### curl

```curl
curl \
  -X DELETE "${KIBANA_URL}/api/workflows/workflow/{id}" \
  -H "Authorization: ApiKey ${API_KEY}" \
  -H "kbn-xsrf: true"
```

#### curl

```curl
curl \
  -X DELETE "${KIBANA_URL}/api/workflows/workflow/{id}?force=true&acknowledgeAclLoss=true" \
  -H "Authorization: ApiKey ${API_KEY}" \
  -H "kbn-xsrf: true"
```

