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

# Self-serve account deletion: erase PII in place and revoke credentials (GDPR Art. 17 erasure)



## OpenAPI

````yaml /api-reference/openapi.json delete /api/v1/account
openapi: 3.1.0
info:
  description: >-
    The /api/v1 REST mirror of the 3ngram memory core (ADR-0011: one core, N
    transports). Authenticate with an X-API-Key header or a session Bearer
    token.
  title: 3ngram REST API
  version: v1
servers:
  - description: Hosted production
    url: https://3ngram-server-production.up.railway.app
security:
  - apiKey: []
  - sessionBearer: []
paths:
  /api/v1/account:
    delete:
      summary: >-
        Self-serve account deletion: erase PII in place and revoke credentials
        (GDPR Art. 17 erasure)
      operationId: deleteAccount
      requestBody:
        content:
          application/json:
            schema:
              additionalProperties: false
              properties:
                confirm:
                  const: true
                  type: boolean
              required:
                - confirm
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                additionalProperties: false
                properties:
                  alreadyDeleted:
                    type: boolean
                  deleted:
                    const: true
                    type: boolean
                  erased:
                    additionalProperties: false
                    properties:
                      apiKeysRevoked:
                        maximum: 9007199254740991
                        minimum: 0
                        type: integer
                      commitments:
                        maximum: 9007199254740991
                        minimum: 0
                        type: integer
                      emailVerificationTokensDeleted:
                        maximum: 9007199254740991
                        minimum: 0
                        type: integer
                      facts:
                        maximum: 9007199254740991
                        minimum: 0
                        type: integer
                      memories:
                        maximum: 9007199254740991
                        minimum: 0
                        type: integer
                      oauthCodesDeleted:
                        maximum: 9007199254740991
                        minimum: 0
                        type: integer
                      oauthTokensRevoked:
                        maximum: 9007199254740991
                        minimum: 0
                        type: integer
                      passwordResetTokensDeleted:
                        maximum: 9007199254740991
                        minimum: 0
                        type: integer
                      proposals:
                        maximum: 9007199254740991
                        minimum: 0
                        type: integer
                      sessionsDeleted:
                        maximum: 9007199254740991
                        minimum: 0
                        type: integer
                    required:
                      - memories
                      - facts
                      - commitments
                      - proposals
                      - sessionsDeleted
                      - apiKeysRevoked
                      - oauthTokensRevoked
                      - oauthCodesDeleted
                      - passwordResetTokensDeleted
                      - emailVerificationTokensDeleted
                    type: object
                required:
                  - deleted
                  - alreadyDeleted
                  - erased
                type: object
          description: Success
components:
  securitySchemes:
    apiKey:
      in: header
      name: X-API-Key
      type: apiKey
    sessionBearer:
      scheme: bearer
      type: http

````