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

# Delete a flow that is off

> Deletes a flow, however it was built (here or in Agent Studio), as the app deletes one (it leaves the list; its run history stays). Refused while the flow is on: turn it off first. Refused, as in the app, for a flow in the Templates folder (its template's source) or a migrated legacy workflow.



## OpenAPI

````yaml /api/statisfy-api.openapi.json delete /v1/automations/flows/{flow_id}
openapi: 3.1.0
info:
  description: >-
    The agent-first Statisfy API. Authenticate with an API key (`Authorization:
    Bearer stfy_live_…`), then call `GET /v1/meta/capabilities` to discover
    every operation and its schemas.
  title: Statisfy API
  version: 1.0.0
servers:
  - url: https://api.statisfy.com
    description: Production
security: []
paths:
  /v1/automations/flows/{flow_id}:
    delete:
      tags:
        - automations
      summary: Delete a flow that is off
      description: >-
        Deletes a flow, however it was built (here or in Agent Studio), as the
        app deletes one (it leaves the list; its run history stays). Refused
        while the flow is on: turn it off first. Refused, as in the app, for a
        flow in the Templates folder (its template's source) or a migrated
        legacy workflow.
      operationId: automations_delete_flow
      parameters:
        - in: path
          name: flow_id
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FlowDeleted'
          description: Successful Response
      security:
        - HTTPBearer: []
components:
  schemas:
    FlowDeleted:
      properties:
        deleted:
          title: Deleted
          type: boolean
        flow_id:
          title: Flow Id
          type: string
      required:
        - flow_id
        - deleted
      title: FlowDeleted
      type: object
  securitySchemes:
    HTTPBearer:
      scheme: bearer
      type: http
      description: >-
        An API key, sent as `Authorization: Bearer stfy_live_…`. See
        [Authentication](/rest-api/authentication) for how to get one and which
        scopes it needs.

````

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