> ## 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 folder

> Delete a workflow folder. Workflows inside it and any subfolders are NOT deleted — they are moved up to the deleted folder’s parent (or to the top level if it was a root folder). Rejected (409) when a subfolder would collide with an existing folder name at the target level; rename or move it first.

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



## OpenAPI

````yaml https://openapi.enginy.ai/definitions.json delete /v1/workflows/folders/{folderId}
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/workflows/folders/{folderId}:
    delete:
      tags:
        - Workflows
      summary: Delete workflow folder
      description: >-
        Delete a workflow folder. Workflows inside it and any subfolders are NOT
        deleted — they are moved up to the deleted folder’s parent (or to the
        top level if it was a root folder). Rejected (409) when a subfolder
        would collide with an existing folder name at the target level; rename
        or move it first.

            > **Required scope:** `WORKFLOWS_WRITE`
            >
            > **Rate limit:** 30 requests per minute
      parameters:
        - schema:
            type: string
            description: Workflow folder ID
          required: true
          description: Workflow folder ID
          name: folderId
          in: path
      responses:
        '200':
          description: Workflow folder deleted successfully
        '400':
          description: The folder 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: Folder not found.
        '409':
          description: >-
            A subfolder would collide with an existing folder name at the target
            level.
      security:
        - apiKey: []
components:
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key

````