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

# Delete folder

> Delete a folder. Optionally delete all workflows in the folder.



## OpenAPI

````yaml /api-reference/openapi.json delete /v1/folders/{folder_id}
openapi: 3.1.0
info:
  title: Skyvern API
  description: API for Skyvern
  version: 1.0.0
servers:
  - url: https://api.skyvern.com
    x-fern-server-name: Cloud
  - url: https://api-staging.skyvern.com
    x-fern-server-name: Staging
  - url: http://localhost:8000
    x-fern-server-name: Local
security: []
paths:
  /v1/folders/{folder_id}:
    delete:
      tags:
        - Folders
      summary: Delete folder
      description: Delete a folder. Optionally delete all workflows in the folder.
      operationId: delete_folder_v1_folders__folder_id__delete
      parameters:
        - name: folder_id
          in: path
          required: true
          schema:
            type: string
            description: Folder ID
            examples:
              - fld_123
            title: Folder Id
          description: Folder ID
        - name: delete_workflows
          in: query
          required: false
          schema:
            type: boolean
            description: If true, also delete all workflows in this folder
            default: false
            title: Delete Workflows
          description: If true, also delete all workflows in this folder
        - name: x-api-key
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: >-
              Skyvern API key for authentication. API key can be found at
              https://app.skyvern.com/settings.
            title: X-Api-Key
          description: >-
            Skyvern API key for authentication. API key can be found at
            https://app.skyvern.com/settings.
      responses:
        '200':
          description: Successfully deleted folder
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Delete Folder V1 Folders  Folder Id  Delete
        '404':
          description: Folder not found
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````