---
title: "Remove a user from a team"
method: DELETE
path: "/team-memberships/{team_id}/{user_id}"
tags: ["Teams"]
---

# Remove a user from a team

`DELETE /team-memberships/{team_id}/{user_id}`

All the users are allowed to remove themselves from a team (`user_id=me`). Only the users who have the `$remove_members` permission are allowed to remove other users from a team. `team_id` is must an ID of a team that the user is a member of.

## Path parameters

- `team_id` string, required
- `user_id` string, required — The ID of the user, or the special value `me` for the currently authenticated user

## Response `200`

Successful response

- object
  - `success` boolean, required — Always equal to true.

---

[API](https://skmtc.net/hexclave/apis/hexclave-rest-api.md) · [All operations](https://skmtc.net/hexclave/apis/hexclave-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hexclave/hexclave-rest-api/revisions/86dcd8c9953c/schema)
