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

# Delete a user from a workspace

> Remove a user from a custom workspace. This endpoint can only be used by instance level admins.



## OpenAPI

````yaml /api-reference/openapi-v3-instance.yaml delete /api/v3/instance/workspaces/{id}/members/users/{user_id}
openapi: 3.0.3
info:
  title: Paradigm API
  version: xenial-xerus (v3-instance)
  description: >-
    A versatile and adaptable tool designed to integrate Generative AI into your
    applications
servers:
  - url: https://paradigm.lighton.ai
security: []
tags:
  - name: Workspaces
    description: Operations about workspaces
paths:
  /api/v3/instance/workspaces/{id}/members/users/{user_id}:
    delete:
      tags:
        - Workspaces
      summary: Delete a user from a workspace
      description: >-
        Remove a user from a custom workspace. This endpoint can only be used by
        instance level admins.
      operationId: api_v3_instance_workspaces_members_users_destroy
      parameters:
        - in: path
          name: id
          schema:
            type: integer
          description: The unique identifier of the workspace.
          required: true
        - in: path
          name: user_id
          schema:
            type: integer
          description: The unique identifier of the user to remove from the workspace.
          required: true
      responses:
        '204':
          description: User removed from workspace successfully
        '401':
          description: Authentication failed - missing or invalid API key
        '403':
          description: >-
            Permission denied - insufficient rights to remove user from
            workspace
        '404':
          description: Workspace or user not found
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Bearer authentication header of the form `Bearer <token>`, where
        `<token>` is your auth token.

````