> ## Documentation Index
> Fetch the complete documentation index at: https://developer.omni.z-api.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete flow

> Permanently delete a flow in DRAFT

## Concepts

Permanently deletes a flow.

<Warning>
  Only flows in `DRAFT` can be deleted. For a published flow, use [Deprecate flow](/en/flows/deprecate-flow).
</Warning>


## OpenAPI

````yaml en/flows/openapi.json DELETE /whatsapp/businesses/{wabaId}/flows/{flowId}
openapi: 3.1.0
info:
  title: Omni Z-API - WhatsApp Flows
  description: API to create and manage WhatsApp Flows (native in-conversation forms)
  version: 1.0.0
servers:
  - url: https://api.omni.z-api.io
security:
  - bearerAuth: []
paths:
  /whatsapp/businesses/{wabaId}/flows/{flowId}:
    delete:
      tags:
        - Flows
      summary: Delete flow
      description: Permanently deletes a flow. Only flows in `DRAFT` can be deleted.
      operationId: deleteFlow
      parameters:
        - name: wabaId
          in: path
          required: true
          description: WABA ID (obtained via List WABAs)
          schema:
            type: string
            example: '428083093730937'
        - name: flowId
          in: path
          required: true
          description: Flow ID (obtained via List flows)
          schema:
            type: string
            example: '1122334455667788'
      responses:
        '204':
          description: Flow deleted. No content returned.
        '401':
          description: Invalid or missing token.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Flow not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          description: >-
            Business rule violated — a published flow does not accept
            `flow_json` changes, or deletion of a flow outside `DRAFT`
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    Error:
      type: object
      properties:
        error:
          type: integer
        message:
          type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````