---
title: "Remove Role from Member"
method: DELETE
path: "/spaces/{spaceId}/members/{userId}/roles/{roleId}"
tags: ["Members"]
---

# Remove Role from Member

`DELETE /spaces/{spaceId}/members/{userId}/roles/{roleId}`

## Request

- The document declares no server URL.
- Auth: none declared

## Response `200`

- MemberExt
  - `id` string, uuid, required
  - `name` string, nullable
  - `roleIds` string[], required
  - `spaceId` string, uuid, required
  - `user` UserExt, required: User with extended data including handle
    - `avatar` string, nullable
    - `category` 'BOT' | 'UNVERIFIED', nullable
    - `description` string, nullable
    - `handle` string, nullable: The user's handle (if claimed)
    - `id` string, uuid, required
    - `name` string, required
    - `spaceOrder` string[], nullable: Persisted ordering of the user's spaces in the sidebar. Always present on responses; optional in the schema so the base `User` shape remains structurally assignable to `UserExt`.
  - `userId` string, uuid, required

## Changes

- **2026-05-19** `7d22ce9ed272`: 1 info
  - added the optional property `user/spaceOrder` to the response with the `200` status
- **2026-02-13** `d4b7e9c1b900`: 1 info
  - added the optional property `user/handle` to the response with the `200` status
- **2025-09-22** `2792e551a954`: 2 warning
  - removed the optional property `user/handle` from the response with the `200` status
  - removed the optional property `user/spaceOrder` from the response with the `200` status

[Operation history](https://skmtc.dev/mikotoio/apis/mikoto-superego/changes/spaces/:spaceId/members/:userId/roles/:roleId/delete.md)

---

[API](https://skmtc.dev/mikotoio/apis/mikoto-superego.md) - [All operations](https://skmtc.dev/mikotoio/apis/mikoto-superego/llms.txt) - [OpenAPI document](https://skmtc.dev/mikotoio/apis/mikoto-superego/revisions/55ae42443991?raw)
