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

# Delete workspace membership

> Remove a member from the workspace. Requires admin role. Cannot remove yourself as owner.



## OpenAPI

````yaml /swagger.json delete /v1/workspaces/{workspace_id}/memberships/{id}
openapi: 3.0.1
info:
  title: Scute API
  version: v1
  description: API for managing users in Scute applications
servers:
  - url: https://{defaultHost}
    variables:
      defaultHost:
        default: api.scute.io
  - url: http://localhost:3333
    description: Development server
security:
  - apiSecret: []
    userAccess: []
paths:
  /v1/workspaces/{workspace_id}/memberships/{id}:
    parameters:
      - name: workspace_id
        in: path
        description: Workspace ID
        required: true
        schema:
          type: string
      - name: id
        in: path
        description: Membership ID
        required: true
        schema:
          type: string
    delete:
      tags:
        - Workspace Memberships
      summary: Delete workspace membership
      description: >-
        Remove a member from the workspace. Requires admin role. Cannot remove
        yourself as owner.
      operationId: deleteWorkspaceMembership
      responses:
        '204':
          description: no content
        '401':
          description: unauthorized
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
        '403':
          description: forbidden
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
        '422':
          description: unprocessable entity
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    description: Cannot remove yourself as an owner
      security:
        - userAccess: []
components:
  securitySchemes:
    apiSecret:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: API Secret token
    userAccess:
      type: apiKey
      name: X-Authorization
      in: header
      description: User Access token

````