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

# Delete apiv1chatrooms messages

> PATCH  /api/v1/chat/rooms/<room_id>/messages/<message_id>/ — edit (sender only)
DELETE /api/v1/chat/rooms/<room_id>/messages/<message_id>/ — soft-delete (sender only)



## OpenAPI

````yaml /openapi/shared.yaml delete /api/v1/chat/rooms/{room_id}/messages/{message_id}
openapi: 3.0.3
info:
  title: Shared Service API
  version: 1.0.0
  description: |2-

        **Shared Service API** - Comprehensive shared service and management system.

        ## Versionings
        The API uses URL path versioning (e.g., `/api/v1/`, `/api/v2/`).
        Current version: **v1**
        
  contact:
    name: API Support
    email: thakacreations@gmail.com
  license:
    name: thakacreations
servers:
  - url: https://api.diginacape.co.ke/shared
    description: Production
  - url: http://localhost:8000
    description: Local
security: []
paths:
  /api/v1/chat/rooms/{room_id}/messages/{message_id}:
    delete:
      tags:
        - chat
      description: >-
        PATCH  /api/v1/chat/rooms/<room_id>/messages/<message_id>/ — edit
        (sender only)

        DELETE /api/v1/chat/rooms/<room_id>/messages/<message_id>/ — soft-delete
        (sender only)
      operationId: chat_rooms_messages_destroy
      parameters:
        - in: path
          name: message_id
          schema:
            type: string
            format: uuid
          required: true
        - in: path
          name: room_id
          schema:
            type: string
            format: uuid
          required: true
      responses:
        '204':
          description: No response body
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: 'Enter your JWT token in the format: Bearer <token>'

````