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

# Delete User

> Deletes a user from the specified workspace. This operation removes the user association from the workspace.



## OpenAPI

````yaml DELETE /api/v1/mgt/workspaces/{workspaceId}/users/{userId}
openapi: 3.1.0
info:
  title: Xenia Team API - Delete User
  description: >-
    Deletes a user from a workspace. Requires valid authorization and workspace
    context.
  version: 1.0.0
servers:
  - url: https://api.xenia.team
security: []
paths:
  /api/v1/mgt/workspaces/{workspaceId}/users/{userId}:
    delete:
      tags:
        - Users
      summary: Delete User
      description: >-
        Deletes a user from the specified workspace. This operation removes the
        user association from the workspace.
      parameters:
        - name: workspaceId
          in: path
          required: true
          schema:
            type: string
            format: uuid
          description: The unique ID of the workspace from which the user will be deleted
        - name: userId
          in: path
          required: true
          schema:
            type: string
            format: uuid
          description: The unique ID of the user to delete
      responses:
        '200':
          description: User deleted successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                  extra_meta:
                    type: object
                    properties:
                      message:
                        type: string
              example:
                data: {}
                extra_meta:
                  message: User deleted successfully
        '400':
          description: Bad Request - Invalid user ID format
        '401':
          description: Unauthorized - Missing or invalid authentication
        '403':
          description: Forbidden - Insufficient permissions or cannot delete yourself
        '404':
          description: Not Found - User not found in the specified workspace
        '500':
          description: Internal Server Error
      security:
        - clientKey: []
          clientSecret: []
components:
  securitySchemes:
    clientKey:
      type: apiKey
      in: header
      name: x-client-key
      description: Client API key for authentication
    clientSecret:
      type: apiKey
      in: header
      name: x-client-secret
      description: Client secret for authentication

````