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

# Delete Conversations

> Delete one or more conversations and their associated data (messages, chunks, vectors).

## Overview

Delete one or more conversations and all associated data (messages, chunks, and vector embeddings). This action is irreversible.

### Example

```bash theme={null}
curl -X DELETE https://www.memoryplugin.com/api/chat-history/chats \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "ids": ["conv-id-1", "conv-id-2"]
  }'
```


## OpenAPI

````yaml DELETE /api/chat-history/chats
openapi: 3.1.0
info:
  title: MemoryPlugin
  version: 1.0.0
  description: API for managing and querying user memories
servers:
  - url: https://www.memoryplugin.com
security: []
paths:
  /api/chat-history/chats:
    delete:
      summary: Delete conversations
      description: >-
        Delete one or more conversations and their associated data (messages,
        chunks, vectors).
      operationId: DeleteConversations
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                ids:
                  type: array
                  items:
                    type: string
                  description: Array of conversation IDs to delete.
              required:
                - ids
      responses:
        '200':
          description: Conversations deleted
          content:
            application/json:
              schema:
                type: object
                properties:
                  deleted:
                    type: array
                    items:
                      type: string
                    description: IDs of successfully deleted conversations.
                  count:
                    type: integer
                    description: Number of conversations deleted.
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - bearerAuth: []
components:
  schemas:
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
        text:
          type: string
        score:
          type: number
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````