> ## Documentation Index
> Fetch the complete documentation index at: https://kapso-1adbad2d.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete WhatsApp message

> Deletes a WhatsApp message from the system.

**Note:**
This operation only deletes the message from the system, not from WhatsApp itself.




## OpenAPI

````yaml api/legacy/openapi-whatsapp.yaml delete /whatsapp_messages/{id}
openapi: 3.0.3
info:
  title: Kapso External API - WhatsApp API
  description: >-
    API for programmatically interacting with Kapso agents, executions, and
    WhatsApp conversations. This specification includes only WhatsApp API
    endpoints.
  version: 1.0.0
  contact:
    name: Kapso Support
servers:
  - url: https://app.kapso.ai/api/v1
    description: Production server
security:
  - ApiKeyAuth: []
paths:
  /whatsapp_messages/{id}:
    delete:
      tags:
        - WhatsApp Messages
      summary: Delete WhatsApp message
      description: >
        Deletes a WhatsApp message from the system.


        **Note:**

        This operation only deletes the message from the system, not from
        WhatsApp itself.
      operationId: deleteWhatsappMessage
      parameters:
        - name: id
          in: path
          required: true
          description: The ID of the WhatsApp message to delete
          schema:
            type: string
            format: uuid
      responses:
        '204':
          description: Message successfully deleted
        '401':
          description: Unauthorized - invalid or missing API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Forbidden - not authorized to delete this message
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Message not found or doesn't belong to authorized project
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                not_found:
                  summary: Message not found
                  value:
                    error: WhatsApp message not found
components:
  schemas:
    Error:
      type: object
      properties:
        error:
          type: string
          example: Resource not found
        status:
          type: integer
          example: 404
        message:
          type: string
          example: The requested resource could not be found
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: API key required for all endpoints

````