> ## 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 project blocks

> Deletes blocks from a Ditto project. Text items in a deleted block are not deleted — they are unassigned and moved to the end of the project's root level.



## OpenAPI

````yaml openapi.json delete /projectBlocks
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:
  /projectBlocks:
    delete:
      tags:
        - Project Blocks
      summary: Delete project blocks
      description: >-
        Deletes blocks from a Ditto project. Text items in a deleted block are
        not deleted — they are unassigned and moved to the end of the project's
        root level.
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                projectId:
                  type: string
                  description: Developer ID of the project the blocks belong to
                developerIds:
                  type: array
                  items:
                    type: string
                  minItems: 1
                  description: >-
                    Developer IDs of the blocks to delete. Text items in a
                    deleted block are unassigned, not deleted.
              required:
                - projectId
                - developerIds
              example:
                projectId: my-project
                developerIds:
                  - hero-section
                  - footer
      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 the project id does not match any project in the
            workspace, or a developer ID does not match any existing block in
            the project.
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    description: Error message describing the validation failure
                required:
                  - message
              example:
                message: Block id not found
      security:
        - ApiKeyAuth: []
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: Authorization

````