---
title: "Removes a user or invitation from a team"
method: DELETE
path: "/teams/{teamId}/memberships/{userId}"
tags: ["Teams"]
---

# Removes a user or invitation from a team

`DELETE /teams/{teamId}/memberships/{userId}`

## Request

- Base URL: `https://connect.signl4.com/api`
- URL: `https://connect.signl4.com/api/teams/{teamId}/memberships/{userId}`
- Auth: none required
- TypeScript: <https://skmtc.dev/signl4/apis/signl4-api-v1/docs/teams/:teamId/memberships/:userId/delete.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `teamId` string, required
- `userId` string, required

## Query parameters

- `requesterUserId` string

## Response `200`

Success message

## Other responses

- `204`: Request was canceled.
- `400`: Required parameters or authentication info could not be found in the request/claims.
- `403`: You're not allowed to request the access all required entities.
- `404`: Required entities could not be found in the database.
- `500`: Internal Server Error

## Changes

- **2025-05-16** `80a3a05166d4`: 3 breaking, 29 info
  - removed the media type `application/json` for the response with the status `200`
  - removed the media type `text/json` for the response with the status `200`
  - removed the media type `text/plain` for the response with the status `200`
  - api tag `Teams` added
  - …28 more

[Operation history](https://skmtc.dev/signl4/apis/signl4-api-v1/changes/teams/:teamId/memberships/:userId/delete.md)

---

[API](https://skmtc.dev/signl4/apis/signl4-api-v1.md) - [All operations](https://skmtc.dev/signl4/apis/signl4-api-v1/llms.txt) - [OpenAPI document](https://skmtc.dev/signl4/apis/signl4-api-v1/revisions/bf9d377a0764?raw)
