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

> Deletes library components from the workspace by their developer IDs. Text items attached to a deleted component are not deleted, they are detached from that component and remain in their project as standalone text items.



## OpenAPI

````yaml openapi.json delete /components
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:
  /components:
    delete:
      tags:
        - Components
      summary: Delete components
      description: >-
        Deletes library components from the workspace by their developer IDs.
        Text items attached to a deleted component are not deleted, they are
        detached from that component and remain in their project as standalone
        text items.
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                developerIds:
                  type: array
                  items:
                    type: string
                  description: Array of developer IDs for the library components to delete
              required:
                - developerIds
              example:
                developerIds:
                  - component-id-1
                  - component-id-2
      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 component
            in the workspace
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    description: Error message describing the validation failure
                required:
                  - message
              example:
                message: Component with developer ID "component-id-1" not found
      security:
        - ApiKeyAuth: []
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: Authorization

````