> ## 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 Memory

> Delete a single memory by its ID. Removes the memory from the database and vector store.

## Overview

Delete a single memory by its ID. The memory is removed from both the database and the vector store.

### Example

```bash theme={null}
curl -X DELETE https://www.memoryplugin.com/api/memories/mem-abc-123 \
  -H "Authorization: Bearer YOUR_API_KEY"
```


## OpenAPI

````yaml DELETE /api/memories/{memoryId}
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/memories/{memoryId}:
    delete:
      summary: Delete a memory
      description: >-
        Delete a single memory by its ID. Removes the memory from the database
        and vector store.
      operationId: DeleteMemory
      parameters:
        - name: memoryId
          in: path
          required: true
          schema:
            type: string
          description: The memory ID to delete.
      responses:
        '200':
          description: Memory deleted
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    enum:
                      - Memory deleted
        '400':
          description: Memory ID is required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '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

````