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

# Delete a chunk

> Deletes a chunk with the specified ID.



## OpenAPI

````yaml DELETE /chunks/{chunkId}
openapi: 3.0.0
info:
  title: Cogfy Messenger Public API
  version: 1.0.0
  description: API for interacting with the Cogfy Messenger platform
servers:
  - url: https://messenger-public-api.cogfy.com
    description: Production server
  - url: http://localhost:53981
    description: Local server
security:
  - ApiKeyAuth: []
tags: []
paths:
  /chunks/{chunkId}:
    delete:
      tags:
        - Embeddings
      summary: Delete a chunk by ID
      description: Deletes a chunk with the specified ID.
      parameters:
        - in: path
          name: chunkId
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: Chunk deleted successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    format: uuid
        '404':
          description: Chunk not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    example: Chunk not found
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: api-key

````