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

# Delete component folders

> Deletes folders from the component library. Components and subfolders inside a deleted folder are not deleted — they are moved up into the deleted folder's parent folder (or the library root).



## OpenAPI

````yaml openapi.json delete /componentFolders
openapi: 3.0.0
info:
  version: 1.0.0
  title: Ditto API
  description: Programmatically read and write data in your Ditto workspace.
servers:
  - url: https://api.dittowords.com/v2
security: []
paths:
  /componentFolders:
    delete:
      tags:
        - Component Folders
      summary: Delete component folders
      description: >-
        Deletes folders from the component library. Components and subfolders
        inside a deleted folder are not deleted — they are moved up into the
        deleted folder's parent folder (or the library root).
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                developerIds:
                  type: array
                  items:
                    type: string
                  minItems: 1
                  description: >-
                    Developer IDs of the folders to delete. Components and
                    subfolders inside a deleted folder are moved to its parent
                    folder (or the library root), not deleted.
              required:
                - developerIds
              example:
                developerIds:
                  - text-fields
      responses:
        '200':
          description: Returns success status of the deletion operation
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    description: Indicates whether the deletion was successful
                required:
                  - success
                example:
                  success: true
        '400':
          description: >-
            Returned when a developer ID does not match any existing folder in
            the workspace
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    description: Error message describing the validation failure
                required:
                  - message
              example:
                message: Folder id not found
      security:
        - ApiKeyAuth: []
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: Authorization

````