---
title: "Remove a member from a workspace (workspace admin only)"
method: DELETE
path: "/api/workspaces/{slug}/members/{userId}"
tags: ["Workspaces"]
---

# Remove a member from a workspace (workspace admin only)

`DELETE /api/workspaces/{slug}/members/{userId}`

## Request

- Base URL: `https://tre-app.com`
- URL: `https://tre-app.com/api/workspaces/{slug}/members/{userId}`
- Auth: HTTP bearer

Their board memberships inside the workspace go too, and their OAuth grants and API tokens bound to it are revoked. If it was the person's last workspace, their sessions and every grant and token they hold are revoked.

## Response `204`

No content

## Other responses

- `400`: Invalid request
- `401`: Unauthenticated
- `403`: Forbidden: insufficient role or token scope; scope denials name the held scope and the operation
- `404`: Not found
- `409`: Conflict
- `429`: Rate limited
- `500`: Internal server error
- `503`: Temporarily unavailable

---

[API](https://skmtc.dev/tre-app/apis/tre-rest-api.md) · [All operations](https://skmtc.dev/tre-app/apis/tre-rest-api/llms.txt) · [OpenAPI document](https://skmtc.dev/tre-app/apis/tre-rest-api/revisions/26a7187a05fc?raw)
