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

# Delete workflow

> Delete a workflow and its run history. Rejected (409) when another workflow still routes into it via a "Send to workflow" step — remove those steps first.

    > **Required scope:** `WORKFLOWS_WRITE`
    >
    > **Rate limit:** 30 requests per minute



## OpenAPI

````yaml https://openapi.enginy.ai/definitions.json delete /v1/workflow/{workflowId}
openapi: 3.1.0
info:
  title: Enginy API
  version: 1.0.0
  description: Public API for Enginy platform
servers:
  - url: https://openapi.enginy.ai
    description: Configured server
security: []
tags:
  - name: AI Variables
    description: >-
      Manage AI variables and discover the entity fields you can reference in
      prompts and entity requests.
  - name: Inbox
    description: >-
      Inbox endpoints for listing contact threads, reading thread messages,
      managing tags, and sending manual replies.
  - name: Workflows
    description: >-
      Build, validate, publish, run, and inspect advanced (graph) workflows,
      plus the block/condition catalog needed to author a workflow plan.
paths:
  /v1/workflow/{workflowId}:
    delete:
      tags:
        - Workflows
      summary: Delete workflow
      description: >-
        Delete a workflow and its run history. Rejected (409) when another
        workflow still routes into it via a "Send to workflow" step — remove
        those steps first.

            > **Required scope:** `WORKFLOWS_WRITE`
            >
            > **Rate limit:** 30 requests per minute
      parameters:
        - schema:
            type: string
          required: true
          name: workflowId
          in: path
      responses:
        '204':
          description: Workflow deleted
        '400':
          description: The workflow ID is not a positive integer.
        '403':
          description: >-
            Advanced workflows are not enabled for this workspace. Ask your
            workspace admin to enable the feature.
        '404':
          description: Workflow not found or not writable.
        '409':
          description: >-
            The workflow is still referenced by another workflow, or has running
            runs — cancel them and retry once they reach a terminal status.
        '500':
          description: The workflow could not be deleted.
      security:
        - apiKey: []
components:
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key

````