---
title: "Remove Team Members"
method: DELETE
path: "/teams/{team_id}/members"
tags: ["Teams"]
---

# Remove Team Members

`DELETE /teams/{team_id}/members`

## Request

- Base URL: `https://dataops.nexla.io/nexla-api`
- URL: `https://dataops.nexla.io/nexla-api/teams/{team_id}/members`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/nexla/apis/nexla-rest-api/docs/teams/:team_id/members/delete.ts> (a function with typed inputs; its response is checked against the schema)

Removes members from a team. If no request body is provided, all members belonging to the team will be removed.

## Path parameters

- `team_id` integer, required

## Request body

- TeamMemberList
  - `members` TeamMemberResponseSchema[]
    - `id` integer: Unique ID of the user.
    - `email` string, email: Email ID of the user.
    - `admin` boolean: Reflects whether the user is an administrator of this team or not.

## Response `200`

Success

- TeamMemberList[]
  - `members` TeamMemberResponseSchema[]
    - `id` integer: Unique ID of the user.
    - `email` string, email: Email ID of the user.
    - `admin` boolean: Reflects whether the user is an administrator of this team or not.

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found

---

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