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

# Erase an agent's notes

> Every note and proposal of one agent, every version, with a receipt.



## OpenAPI

````yaml openapi/en/cell.json DELETE /v1/agent-memory/notes
openapi: 3.1.0
info:
  title: Niadra data API
  version: '1'
  description: >-
    Writing, context, history, objects, identity, privacy and governance of one
    space. Every space has a stable address, with the space and the region in
    its name.
servers:
  - url: https://{space}.{region}.api.niadra.com
    variables:
      space:
        default: acme-prod
        description: The space, which comes in the source key.
      region:
        default: us-east-2
        description: The region of the space, which also comes in the key.
security: []
paths:
  /v1/agent-memory/notes:
    delete:
      tags:
        - agent-memory
      summary: Erase an agent's notes
      description: >-
        Deletes every note and proposal of one agent, every version, with an
        `admin` receipt.


        **Authentication.** Source key with the `admin` scope, or a Console
        person token with the admin role.
      operationId: erase_notes_v1_agent_memory_notes_delete
      parameters:
        - in: query
          name: source_id
          required: true
          schema:
            format: uuid
            title: Source Id
            type: string
          description: The agent whose notes are deleted.
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErasedAgentNotes'
          description: How many notes and proposals were deleted.
        '422':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
          description: The request does not match the contract.
      security:
        - sourceKey: []
        - personToken: []
components:
  schemas:
    ErasedAgentNotes:
      additionalProperties: false
      properties:
        deleted:
          title: Deleted
          type: integer
        receipt_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Receipt Id
        source_id:
          format: uuid
          title: Source Id
          type: string
      required:
        - source_id
        - deleted
      title: ErasedAgentNotes
      type: object
    Problem:
      additionalProperties: false
      description: RFC 9457 problem details; `code` comes from the versioned error catalog.
      properties:
        code:
          title: Code
          type: string
        detail:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          title: Detail
        request_id:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          title: Request Id
        status:
          title: Status
          type: integer
        title:
          title: Title
          type: string
        type:
          default: about:blank
          title: Type
          type: string
      required:
        - title
        - status
        - code
      title: Problem
      type: object
  securitySchemes:
    sourceKey:
      type: http
      scheme: bearer
      description: nia_sk_...
    personToken:
      type: http
      scheme: bearer
      bearerFormat: JWT

````