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

# Remove Member

> Removes a member from the current account. The user's access to
this account is revoked immediately.
Requires `team:remove` permission.




## OpenAPI

````yaml DELETE /api/accounts/current/members/{userId}
openapi: 3.1.0
info:
  title: Naturalead Accounts & Teams API
  version: 1.0.0
  description: >
    API for managing accounts, team members, and RBAC roles in the Naturalead
    platform.

    All endpoints require API key authentication and are scoped to the caller's
    account.
servers:
  - url: '{baseUrl}'
    description: API server
    variables:
      baseUrl:
        default: http://localhost:3001
security:
  - BearerAuth: []
tags:
  - name: Accounts
    description: Account profile and settings
  - name: Team
    description: Team member management and role assignment
  - name: Roles
    description: RBAC role and permission introspection
paths:
  /api/accounts/current/members/{userId}:
    delete:
      tags:
        - Team
      summary: Remove team member
      description: |
        Removes a member from the current account. The user's access to
        this account is revoked immediately.
        Requires `team:remove` permission.
      operationId: removeMember
      parameters:
        - name: userId
          in: path
          required: true
          description: The user ID of the member to remove
          schema:
            type: string
      responses:
        '200':
          description: Member removed
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
        '500':
          $ref: '#/components/responses/InternalError'
components:
  responses:
    InternalError:
      description: Internal server error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  schemas:
    Error:
      type: object
      properties:
        error:
          type: string
          description: Error message
      required:
        - error
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: Bearer token using an API key (format nl_live_* or nl_test_*)

````