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

# Unregister User

> Removes a user from `users.json` by phone number, regenerates config, and updates gateway config. Idempotent — returns removed:false if the phone is not registered.



## OpenAPI

````yaml POST /loglife/unregister
openapi: 3.1.0
info:
  title: LogLife Plugin API
  version: 0.1.0
  description: >-
    HTTP API exposed by the LogLife plugin running inside the OpenClaw gateway.
    All endpoints require Bearer token authentication.
servers:
  - url: http://localhost:18789
    description: Local development
security:
  - bearerAuth: []
paths:
  /loglife/unregister:
    post:
      summary: Remove a registered user
      description: >-
        Removes a user from `users.json` by phone number, regenerates config,
        and updates gateway config. Idempotent — returns removed:false if the
        phone is not registered.
      operationId: unregisterUser
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - phone
              properties:
                phone:
                  type: string
                  description: Phone number in E.164 format
                  example: '+15551234567'
      responses:
        '200':
          description: Unregister result
          content:
            application/json:
              schema:
                type: object
                properties:
                  removed:
                    type: boolean
                  existing:
                    type: boolean
                    description: False when no matching user exists
                  removedUserIds:
                    type: array
                    items:
                      type: string
        '400':
          description: Missing or invalid phone number
        '401':
          description: Unauthorized
        '500':
          description: Unregister failed
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        The API key configured in openclaw.json under
        plugins.entries.loglife.config.apiKey

````