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

# Delete a flow

> Delete a flow that is switched off, with its run history. Scope: write.

Only a flow that is switched off can be deleted (a live one answers **409 flow\_live**). Its run history goes with it.

## Basic Usage

```bash theme={null}
curl -X DELETE https://api.flowiq.live/v1/flows/$FLOW_ID \
  -H "Authorization: Bearer fiq_YOUR_API_KEY"
```


## OpenAPI

````yaml flowiq-api-reference/openapi-flows.json DELETE /v1/flows/{id}
openapi: 3.1.0
info:
  title: FlowIQ Flows API
  version: 1.0.0
  description: List, read, create, change and switch on FlowIQ flows.
servers:
  - url: https://api.flowiq.live
    description: FlowIQ Production API
security:
  - BearerAuth: []
tags:
  - name: Flows
paths:
  /v1/flows/{id}:
    delete:
      tags:
        - Flows
      summary: Delete a flow
      description: 'Delete a flow that is switched off, with its run history. Scope: write.'
      operationId: deleteFlow
      parameters:
        - name: id
          in: path
          required: true
          description: The flow's id
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: Deleted
          content:
            application/json:
              schema:
                type: object
                properties:
                  deleted:
                    type: boolean
                  id:
                    type: string
                    format: uuid
                  name:
                    type: string
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          description: No flow with that id in your organisation (code not_found)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: The flow is still live; switch it off first (code flow_live)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          $ref: '#/components/responses/RateLimited'
components:
  responses:
    Unauthorized:
      description: Missing or invalid API key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Forbidden:
      description: The key lacks the read or write scope (code forbidden_scope)
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    RateLimited:
      description: >-
        More than 600 reads or 60 changes a minute per key; Retry-After says
        when
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  schemas:
    Error:
      type: object
      properties:
        error:
          type: string
        code:
          type: string
        message:
          type: string
        request_id:
          type: string
          format: uuid
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: fiq_ API key
      description: >-
        Your FlowIQ organisation API key (Settings → API Keys), sent as a bearer
        token. Format: `Bearer fiq_YOUR_API_KEY`

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.