---
title: "Remove a workspace member"
method: DELETE
path: "/admin/workspaces/{workspaceId}/members/{userId}"
tags: ["Admin"]
---

# Remove a workspace member

`DELETE /admin/workspaces/{workspaceId}/members/{userId}`

## Request

- Base URL: `https://cloud.kaneo.app/api`
- URL: `https://cloud.kaneo.app/api/admin/workspaces/{workspaceId}/members/{userId}`
- Auth: HTTP bearer

Remove a member from a workspace. Their account stays. The only owner can't be removed. Returns the updated member list.

## Path parameters

- `workspaceId` string, required
- `userId` string, required

## Response `200`

Updated workspace members

- AdminWorkspaceMember[]
  - `userId` string, required
  - `name` string, required
  - `email` string, required
  - `image` string, nullable, required
  - `role` string, required
  - `joinedAt` string, date-time, required

## Other responses

- `401`: Missing or invalid credentials
- `403`: The caller is not an instance administrator or is authenticated with an API key
- `404`: Workspace or member not found
- `409`: The member is the only owner
- `429`: The API key exceeded its rate limit or usage quota. Wait the number of seconds in Retry-After before retrying. The X-RateLimit headers are sent only when the rate limit was hit.

## Changes

- **2026-10-08** `c7b8a842601b`: 4 breaking, 5 info
  - removed the media type `text/plain` for the response with the status `403`
  - removed the media type `text/plain` for the response with the status `404`
  - removed the media type `text/plain` for the response with the status `409`
  - removed the media type `text/plain` for the response with the status `429`
  - …5 more
- **2026-10-08** `2ed51b8af657`: 4 breaking, 4 info
  - removed the media type `application/json` for the response with the status `401`
  - removed the media type `application/json` for the response with the status `403`
  - removed the media type `application/json` for the response with the status `404`
  - removed the media type `application/json` for the response with the status `409`
  - …4 more
- **2026-10-07** `df1439c724ee`: 3 breaking, 4 info
  - removed the media type `text/plain` for the response with the status `403`
  - removed the media type `text/plain` for the response with the status `404`
  - removed the media type `text/plain` for the response with the status `409`
  - added the media type `application/json` for the response with the status `401`
  - …3 more
- **2026-10-06** `7dace2b05cc2`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/usekaneo/apis/kaneo-api/changes/admin/workspaces/:workspaceId/members/:userId/delete.md)

---

[API](https://skmtc.dev/usekaneo/apis/kaneo-api.md) - [All operations](https://skmtc.dev/usekaneo/apis/kaneo-api/llms.txt) - [OpenAPI document](https://skmtc.dev/usekaneo/apis/kaneo-api/revisions/93f78789100c?raw)
