---
type: api
title: Delete a workflow
description: Delete a single workflow by its ID.<br/><br/>[Required authorization] Route required privileges: workflowsManagement:delete.
url: https://www.elastic.co/elastic/docs-builder/docs/4493/api/doc/kibana/v0/operation/operation-delete-workflows-workflow-id
resource: https://www.elastic.co/elastic/docs-builder/docs/4493/api/doc/kibana/v0/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}`

#### Path parameters

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

## Description

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"
```

