> ## Documentation Index
> Fetch the complete documentation index at: https://docs.keebai.com/llms.txt
> Use this file to discover all available pages before exploring further.

# DELETE /v1/flows/{id}

> Delete a WhatsApp Flow. Meta only allows deleting Flows that are still in draft.

## Endpoint

```
DELETE https://api.keebai.com/v1/flows/{id}
```

## Required scope

`flows:write`

## Example request

```bash curl theme={null}
curl -X DELETE https://api.keebai.com/v1/flows/66a1f2b3c4d5e6f708192a3b \
  -H "Authorization: Bearer kbai_pk_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
```

## Response

### 204 No Content

The Flow was deleted at Meta and removed from Keebai.

### 400 Bad Request

Meta refuses to delete a published Flow. Deprecate it instead: stop sending it and publish a replacement.

### 404 Not Found

`FLOW_NOT_FOUND`.


## OpenAPI

````yaml DELETE /v1/flows/{id}
openapi: 3.0.0
info:
  title: Keebai Public API
  description: Superficie pública REST autenticada con Personal Access Tokens (PAT).
  version: 1.0.0
  contact: {}
servers:
  - url: https://api.keebai.com
    description: Production
security: []
tags: []
paths:
  /v1/flows/{id}:
    delete:
      tags:
        - flows
      summary: Delete a WhatsApp Flow
      description: Meta only allows deleting Flows that are still in draft.
      operationId: PublicFlowsController_remove
      parameters:
        - name: id
          required: true
          in: path
          schema:
            type: string
      responses:
        '204':
          description: ''
      security:
        - PAT: []
components:
  securitySchemes:
    PAT:
      scheme: bearer
      bearerFormat: kbai_pk_<hex>
      type: http
      description: >-
        Personal Access Token con prefijo `kbai_pk_`. Generar desde el portal
        con permiso `developer.manage_tokens`.

````