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

# Deletes a member and anonymizes their data



## OpenAPI

````yaml openapi/member-v1.json DELETE /v1/members/{memberId}
openapi: 3.0.4
info:
  title: MemberService.Api
  version: v1
servers:
  - url: https://{host}/member
    description: Your Lobyco environment
    variables:
      host:
        default: your-environment.lobyco.net
        description: >-
          The API host for your Lobyco environment. Replace it with the host you
          were given — this placeholder does not resolve.
security:
  - Bearer: []
paths:
  /v1/members/{memberId}:
    delete:
      tags:
        - Service2Service
      summary: Deletes a member and anonymizes their data
      parameters:
        - name: memberId
          in: path
          description: Member ID
          required: true
          schema:
            type: string
      requestBody:
        description: Member deletion request
        content:
          application/json:
            schema:
              $ref: >-
                #/components/schemas/MemberService.Api.Controllers.DTOs.DeleteMemberRequest
          text/json:
            schema:
              $ref: >-
                #/components/schemas/MemberService.Api.Controllers.DTOs.DeleteMemberRequest
          application/*+json:
            schema:
              $ref: >-
                #/components/schemas/MemberService.Api.Controllers.DTOs.DeleteMemberRequest
        required: true
      responses:
        '200':
          description: OK
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/LoopFoundation.Commons.Contracts.WebServiceError
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/LoopFoundation.Commons.Contracts.WebServiceError
components:
  schemas:
    MemberService.Api.Controllers.DTOs.DeleteMemberRequest:
      required:
        - reason
      type: object
      properties:
        changedBy:
          $ref: '#/components/schemas/MemberService.Api.Controllers.DTOs.User'
        reason:
          minLength: 1
          type: string
          description: Reason for deleting the member
        deletionMode:
          $ref: '#/components/schemas/Common.System.DeletionMode'
      additionalProperties: false
    LoopFoundation.Commons.Contracts.WebServiceError:
      required:
        - message
        - name
      type: object
      properties:
        name:
          minLength: 1
          type: string
        message:
          minLength: 1
          type: string
        details:
          nullable: true
      additionalProperties: false
    MemberService.Api.Controllers.DTOs.User:
      required:
        - fullName
        - id
      type: object
      properties:
        id:
          maxLength: 36
          minLength: 1
          type: string
          description: User ID
        fullName:
          maxLength: 64
          minLength: 1
          type: string
          description: Full name of the user
      additionalProperties: false
    Common.System.DeletionMode:
      enum:
        - Notification
        - Immediate
      type: string
  securitySchemes:
    Bearer:
      type: apiKey
      description: >-
        JWT Authorization header using the Bearer scheme. Example:
        "Authorization: Bearer {token}"
      name: Authorization
      in: header

````