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

# Delete Workspace Membership



## OpenAPI

````yaml delete /api/v1/workspace-memberships/{workspace_membership_id}
openapi: 3.1.0
info:
  title: AskUI Workspaces API
  version: 0.2.15
servers: []
security: []
paths:
  /api/v1/workspace-memberships/{workspace_membership_id}:
    delete:
      tags:
        - workspace-memberships
      summary: Delete Workspace Membership
      operationId: >-
        delete_workspace_membership_api_v1_workspace_memberships__workspace_membership_id__delete
      parameters:
        - name: workspace_membership_id
          in: path
          required: true
          schema:
            type: string
            format: uuid4
            title: Workspace Membership Id
      responses:
        '204':
          description: Successful Response
        '409':
          description: Orphaned Workspace Error
          content:
            application/json:
              example:
                detail:
                  - msg: >-
                      Cannot delete the last ROLE_WORKSPACE_OWNER of the
                      workspace. Please, delete the workspace instead.
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - Bearer: []
        - Basic: []
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    Bearer:
      type: http
      scheme: bearer
    Basic:
      type: apiKey
      in: header
      name: Authorization

````