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

# Soft-delete (archive) a memory (hard delete may come later).



## OpenAPI

````yaml api-reference/flumes.yaml delete /v0/memories/{memory_id}
openapi: 3.1.0
info:
  title: Flumes Memory API (MVP)
  version: 0.9.2
  description: >
    Unified memory + context assembly for LLM agents.

    Core endpoints: /v0/context/assemble, /v0/memories, /v0/recall,
    /v0/summarize, /v0/prune, /v0/observability/events.

    Private endpoints (not for SDKs): /v0/extract, /v0/memories:batch_upsert.
servers:
  - url: https://api.flumes.ai
    description: Production
  - url: https://staging.api.flumes.ai
    description: Staging
security:
  - bearerAuth: []
paths:
  /v0/memories/{memory_id}:
    delete:
      tags:
        - Memories
      summary: Soft-delete (archive) a memory (hard delete may come later).
      operationId: archiveMemory
      parameters:
        - $ref: '#/components/parameters/OrgHeader'
        - name: memory_id
          in: path
          required: true
          schema:
            type: string
      responses:
        '204':
          description: Archived
          headers:
            X-Request-Id:
              schema:
                type: string
            Access-Control-Allow-Origin:
              schema:
                type: string
        '401':
          $ref: '#/components/responses/ErrorResponse'
        '404':
          $ref: '#/components/responses/ErrorResponse'
components:
  parameters:
    OrgHeader:
      name: X-Flumes-Org
      in: header
      required: false
      schema:
        type: string
        maxLength: 128
      description: Deprecated. Org is derived from API key; header is ignored.
  responses:
    ErrorResponse:
      description: Error envelope
      headers:
        X-Request-Id:
          schema:
            type: string
        X-RateLimit-Remaining:
          schema:
            type: integer
        X-RateLimit-Reset:
          schema:
            type: integer
            description: UTC seconds until limit resets
        Access-Control-Allow-Origin:
          schema:
            type: string
          description: Present if CORS enabled
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  schemas:
    Error:
      type: object
      properties:
        error:
          type: string
          examples:
            - unauthorized
            - validation_error
            - rate_limited
            - conflict
        message:
          type: string
        request_id:
          type: string
        details:
          type: object
          additionalProperties: true
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: APIKey

````