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

# Remove all phantom (demo) entities from Memory

> Deletes all records tagged 'phantom' from PostgreSQL entity_registry and all nodes where is_phantom=true from FalkorDB (including their edges). Returns the total count of PostgreSQL rows removed.



## OpenAPI

````yaml /api-reference/memory-api.json delete /v1/memory/phantom/clear
openapi: 3.1.0
info:
  title: Strattum Memory API
  description: >-
    REST API that serves entity context — profile, timeline, graph, sources and
    formatted context — for agents and UIs. (PRD-003, Workstream 1.3)
  version: 1.0.0
servers: []
security: []
paths:
  /v1/memory/phantom/clear:
    delete:
      tags:
        - phantom
      summary: Remove all phantom (demo) entities from Memory
      description: >-
        Deletes all records tagged 'phantom' from PostgreSQL entity_registry and
        all nodes where is_phantom=true from FalkorDB (including their edges).
        Returns the total count of PostgreSQL rows removed.
      operationId: phantom_clear_v1_memory_phantom_clear_delete
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PhantomClearResponse'
components:
  schemas:
    PhantomClearResponse:
      properties:
        removed:
          type: integer
          title: Removed
        ontology_labels_removed:
          items:
            type: string
          type: array
          title: Ontology Labels Removed
          default: []
      type: object
      required:
        - removed
      title: PhantomClearResponse
      description: Response for DELETE /memory/phantom/clear.

````