---
type: api
title: Delete a workflow
description: **Spaces method and path for this operation:**
url: https://www.elastic.co/elastic/docs-builder/docs/4493/api/doc/kibana/v9/operation/operation-delete-workflows-workflow-id
resource: https://www.elastic.co/elastic/docs-builder/docs/4493/api/doc/kibana/v9/operation/operation-delete-workflows-workflow-id
products:
  - Kibana
---

# Delete a workflow

Availability: Generally available since 9.4

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

## Paths

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

#### Path parameters

- `id` (string) — required
  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.

## Required authorization

- Privileges: `workflowsManagement:delete`

## Authentication

- Api key: `Authorization: <value>`
  These APIs use key-based authentication. You must create an API key and use the encoded value in the request header. For example: `Authorization: ApiKey base64AccessApiKey`
- Basic: `Authorization: Basic <credentials>`

## Query string parameters

- `force` (boolean · default: false) — optional
  When true, permanently deletes the workflow (hard delete) instead of soft-deleting it. The workflow ID becomes available for reuse.

## Header parameters

- `kbn-xsrf` (string) — required
  A required header to protect against CSRF attacks

## 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" \
  -H "Authorization: ApiKey ${API_KEY}" \
  -H "kbn-xsrf: true"
```

